Issue 107551
Summary [lldb] warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
Labels new issue
Assignees
Reporter trcrsired
    ```
50:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  950 |   if (debugserver_file_spec = GetDebugserverPath(platform)) {
      | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/cqwrteur/toolchains_build/llvm-project/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp:950:29: note: place parentheses around the assignment to silence this warning
 950 |   if (debugserver_file_spec = GetDebugserverPath(platform)) {
 |                             ^                             
      | ( )
/home/cqwrteur/toolchains_build/llvm-project/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp:950:29: note: use '==' to turn this assignment into an equality comparison
  950 | if (debugserver_file_spec = GetDebugserverPath(platform)) {
      | ^
      |                             ==
1 warning generated.
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to