summaryrefslogtreecommitdiffstats
path: root/lldb/tools/debugserver/source/DNB.cpp
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2015-07-24 00:23:29 +0000
committerBruce Mitchener <bruce.mitchener@gmail.com>2015-07-24 00:23:29 +0000
commit8a67bf72984123302da6521d66a51f9c09a9504b (patch)
tree2dd1b32dd9de2d739c8dd947b546764dc28d1ef6 /lldb/tools/debugserver/source/DNB.cpp
parentff8fbf9f90540478663bcd02f42a2fa30cfed543 (diff)
downloadbcm5719-llvm-8a67bf72984123302da6521d66a51f9c09a9504b.tar.gz
bcm5719-llvm-8a67bf72984123302da6521d66a51f9c09a9504b.zip
Add UNUSED_IF_ASSERT_DISABLED and apply it.
Summary: This replaces (void)x; usages where they x was subsequently involved in an assertion with this macro to make the intent more clear. Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11451 llvm-svn: 243074
Diffstat (limited to 'lldb/tools/debugserver/source/DNB.cpp')
-rw-r--r--lldb/tools/debugserver/source/DNB.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/tools/debugserver/source/DNB.cpp b/lldb/tools/debugserver/source/DNB.cpp
index f630d0b47da..5462cc40f1f 100644
--- a/lldb/tools/debugserver/source/DNB.cpp
+++ b/lldb/tools/debugserver/source/DNB.cpp
@@ -446,7 +446,7 @@ DNBProcessLaunch (const char *path,
else
{
bool res = AddProcessToMap(pid, processSP);
- (void)res;
+ UNUSED_IF_ASSERT_DISABLED(res);
assert(res && "Couldn't add process to map!");
return pid;
}
@@ -495,7 +495,7 @@ DNBProcessAttach (nub_process_t attach_pid, struct timespec *timeout, char *err_
if (pid != INVALID_NUB_PROCESS)
{
bool res = AddProcessToMap(pid, processSP);
- (void)res;
+ UNUSED_IF_ASSERT_DISABLED(res);
assert(res && "Couldn't add process to map!");
spawn_waitpid_thread(pid);
}
OpenPOWER on IntegriCloud