aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2023-11-03 14:04:26 +0000
committerDavid Spickett <david.spickett@linaro.org>2023-11-03 14:20:05 +0000
commit68fbc8eec38d2930b60e01ffb2cbf297eac658fb (patch)
tree8dbd066fcba5221347ddde59bf3b2fb09ba9b57b /lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
parentee9220c8e3fe3d738b0e84f706b789326d912937 (diff)
downloadllvm-68fbc8eec38d2930b60e01ffb2cbf297eac658fb.zip
llvm-68fbc8eec38d2930b60e01ffb2cbf297eac658fb.tar.gz
llvm-68fbc8eec38d2930b60e01ffb2cbf297eac658fb.tar.bz2
[lldb][NFC] Use UNUSED_IF_ASSERT_DISABLED instead of (void) cast
Uses of (void) remain where they are for purposes other than an assert variable.
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp')
-rw-r--r--lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
index aac3bc84..5d2b4b0 100644
--- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
+++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
@@ -281,7 +281,7 @@ NativeProcessLinux::Manager::Launch(ProcessLaunchInfo &launch_info,
int wstatus = 0;
::pid_t wpid = llvm::sys::RetryAfterSignal(-1, ::waitpid, pid, &wstatus, 0);
assert(wpid == pid);
- (void)wpid;
+ UNUSED_IF_ASSERT_DISABLED(wpid);
if (!WIFSTOPPED(wstatus)) {
LLDB_LOG(log, "Could not sync with inferior process: wstatus={1}",
WaitStatus::Decode(wstatus));