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/FreeBSD/NativeProcessFreeBSD.cpp | |
| parent | ee9220c8e3fe3d738b0e84f706b789326d912937 (diff) | |
[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/FreeBSD/NativeProcessFreeBSD.cpp')
| -rw-r--r-- | lldb/source/Plugins/Process/FreeBSD/NativeProcessFreeBSD.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/FreeBSD/NativeProcessFreeBSD.cpp b/lldb/source/Plugins/Process/FreeBSD/NativeProcessFreeBSD.cpp index 84a009be50bf..19e0986ace31 100644 --- a/lldb/source/Plugins/Process/FreeBSD/NativeProcessFreeBSD.cpp +++ b/lldb/source/Plugins/Process/FreeBSD/NativeProcessFreeBSD.cpp @@ -69,7 +69,7 @@ NativeProcessFreeBSD::Manager::Launch(ProcessLaunchInfo &launch_info, int wstatus; ::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)); |
