[Lldb-commits] [lldb] d4e320e - [lldb][NFC] Fix -Wparentheses warning.
via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 6 02:55:29 PDT 2024
Author: Christian Sigg
Date: 2024-09-06T11:55:24+02:00
New Revision: d4e320e6f4dd78929cec44b342b6035a6bbd6323
URL: https://github.com/llvm/llvm-project/commit/d4e320e6f4dd78929cec44b342b6035a6bbd6323
DIFF: https://github.com/llvm/llvm-project/commit/d4e320e6f4dd78929cec44b342b6035a6bbd6323.diff
LOG: [lldb][NFC] Fix -Wparentheses warning.
Fix `using the result of an assignment as a condition without parentheses` warning.
Added:
Modified:
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
index 04f0f525e3ebba..9cf37e271bcde7 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
@@ -947,7 +947,7 @@ Status GDBRemoteCommunication::StartDebugserverProcess(
Status error;
FileSpec &debugserver_file_spec = launch_info.GetExecutableFile();
- if (debugserver_file_spec = GetDebugserverPath(platform)) {
+ if ((debugserver_file_spec = GetDebugserverPath(platform))) {
std::string debugserver_path = debugserver_file_spec.GetPath();
Args &debugserver_args = launch_info.GetArguments();
More information about the lldb-commits
mailing list