diff options
author | David Spickett <david.spickett@linaro.org> | 2023-11-03 14:04:26 +0000 |
---|---|---|
committer | David Spickett <david.spickett@linaro.org> | 2023-11-03 14:20:05 +0000 |
commit | 68fbc8eec38d2930b60e01ffb2cbf297eac658fb (patch) | |
tree | 8dbd066fcba5221347ddde59bf3b2fb09ba9b57b /lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp | |
parent | ee9220c8e3fe3d738b0e84f706b789326d912937 (diff) | |
download | llvm-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.cpp | 2 |
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)); |