[Lldb-commits] [lldb] r370026 - Fix an unused variable warning in no-assert builds

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 27 00:46:07 PDT 2019


Author: labath
Date: Tue Aug 27 00:46:07 2019
New Revision: 370026

URL: http://llvm.org/viewvc/llvm-project?rev=370026&view=rev
Log:
Fix an unused variable warning in no-assert builds

Modified:
    lldb/trunk/source/Host/common/MainLoop.cpp

Modified: lldb/trunk/source/Host/common/MainLoop.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/MainLoop.cpp?rev=370026&r1=370025&r2=370026&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/MainLoop.cpp (original)
+++ lldb/trunk/source/Host/common/MainLoop.cpp Tue Aug 27 00:46:07 2019
@@ -320,6 +320,7 @@ MainLoop::RegisterSignal(int signo, cons
   // Even if using kqueue, the signal handler will still be invoked, so it's
   // important to replace it with our "benign" handler.
   int ret = sigaction(signo, &new_action, &info.old_action);
+  (void)ret;
   assert(ret == 0 && "sigaction failed");
 
 #if HAVE_SYS_EVENT_H




More information about the lldb-commits mailing list