about summary refs log tree commit diff
path: root/src/libmain
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2016-10-12T13·53+0200
committerEelco Dolstra <edolstra@gmail.com>2016-10-12T13·53+0200
commit816d3e57248da2ce4976ae9f8334ee467bcd657e (patch)
treedbf19f7a1b6dec6ba10822bd8fac1acf3cc21e92 /src/libmain
parent82e2a070e0d2a617cb47c285e176a3fff3ca64e8 (diff)
Shut up some warnings
Diffstat (limited to 'src/libmain')
-rw-r--r--src/libmain/stack.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmain/stack.cc b/src/libmain/stack.cc
index 41b617d98be2..abf59dc4baa6 100644
--- a/src/libmain/stack.cc
+++ b/src/libmain/stack.cc
@@ -32,7 +32,7 @@ static void sigsegvHandler(int signo, siginfo_t * info, void * ctx)
         if (diff < 0) diff = -diff;
         if (diff < 4096) {
             char msg[] = "error: stack overflow (possible infinite recursion)\n";
-            (void) write(2, msg, strlen(msg));
+            [[gnu::unused]] int res = write(2, msg, strlen(msg));
             _exit(1); // maybe abort instead?
         }
     }