diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2015-07-24 00:23:29 +0000 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2015-07-24 00:23:29 +0000 |
commit | 8a67bf72984123302da6521d66a51f9c09a9504b (patch) | |
tree | 2dd1b32dd9de2d739c8dd947b546764dc28d1ef6 /lldb/source/Host/posix/MainLoopPosix.cpp | |
parent | ff8fbf9f90540478663bcd02f42a2fa30cfed543 (diff) | |
download | bcm5719-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.cpp | 2 |
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); } |