From 8a67bf72984123302da6521d66a51f9c09a9504b Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Fri, 24 Jul 2015 00:23:29 +0000 Subject: 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 --- lldb/source/Host/posix/MainLoopPosix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Host/posix/MainLoopPosix.cpp') 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); } -- cgit v1.2.3