Disable unused return code warning for unreachable code.

This commit is contained in:
Michael Weber 2018-05-07 17:49:47 +02:00
parent c97313611e
commit 05427b0efb

View File

@ -663,7 +663,10 @@ static void signal_exit(int sig)
signal(SIGINT, SIG_IGN); signal(SIGINT, SIG_IGN);
signal(SIGTERM, SIG_IGN); signal(SIGTERM, SIG_IGN);
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-result"
write(pipefd[1], &signum, 1); write(pipefd[1], &signum, 1);
#pragma GCC diagnostic pop
} }
static int scan_process(struct process *process) static int scan_process(struct process *process)