Shut up some warnings

This commit is contained in:
Eelco Dolstra 2016-10-12 15:53:38 +02:00
parent 82e2a070e0
commit 816d3e5724
2 changed files with 2 additions and 2 deletions

View file

@ -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?
}
}