[Lldb-commits] [PATCH] Fix Ubuntu build break with gcc 5.4

Robinson, Paul via lldb-commits lldb-commits at lists.llvm.org
Tue May 2 16:13:35 PDT 2017

Recently I started seeing a build error from a tree that has lldb in it;
I don't know whether the problem is my configuration, or Ubuntu, or gcc, 
or what, but gcc complains that it can't convert 'int' to 'sigset_t' on 
the return statement.

This naïve one-liner fixes it, although I don't know anything about
signal stuff.  Didn't seem worth cranking up a Phab review for this...

Index: source/Host/common/MainLoop.cpp
--- source/Host/common/MainLoop.cpp	(revision 301939)
+++ source/Host/common/MainLoop.cpp	(working copy)
@@ -155,7 +155,7 @@
 sigset_t MainLoop::RunImpl::get_sigmask() {
-  return 0;
+  return sigset_t();
   sigset_t sigmask;
   int ret = pthread_sigmask(SIG_SETMASK, nullptr, &sigmask);

More information about the lldb-commits mailing list