aboutsummaryrefslogtreecommitdiff
path: root/source/Host
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-08-27 07:46:07 +0000
committerPavel Labath <pavel@labath.sk>2019-08-27 07:46:07 +0000
commit9cb01d9211a1dff023209592b786ab52f8ca466d (patch)
tree3688b712a61cc4322d0224e49ea409b60940ce68 /source/Host
parent14f4476d2a0ad3ccc0c6cfa617261ac04277b5cb (diff)
downloadlldb-9cb01d9211a1dff023209592b786ab52f8ca466d.tar.gz
Fix an unused variable warning in no-assert builds
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@370026 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'source/Host')
-rw-r--r--source/Host/common/MainLoop.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/Host/common/MainLoop.cpp b/source/Host/common/MainLoop.cpp
index 1ce09a846..6f774451c 100644
--- a/source/Host/common/MainLoop.cpp
+++ b/source/Host/common/MainLoop.cpp
@@ -320,6 +320,7 @@ MainLoop::RegisterSignal(int signo, const Callback &callback, Status &error) {
// 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