summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/posix/MainLoopPosix.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/source/Host/posix/MainLoopPosix.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/source/Host/posix/MainLoopPosix.cpp')
-rw-r--r--lldb/source/Host/posix/MainLoopPosix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Host/posix/MainLoopPosix.cpp b/lldb/source/Host/posix/MainLoopPosix.cpp
index dccd7fa8022..897f2d13c0c 100644
--- a/lldb/source/Host/posix/MainLoopPosix.cpp
+++ b/lldb/source/Host/posix/MainLoopPosix.cpp
@@ -97,7 +97,7 @@ void
MainLoopPosix::UnregisterReadObject(IOObject::WaitableHandle handle)
{
bool erased = m_read_fds.erase(handle);
- (void) erased;
+ UNUSED_IF_ASSERT_DISABLED(erased);
assert(erased);
}
OpenPOWER on IntegriCloud