From 05427b0efb901918282f5e18c5487908faba720a Mon Sep 17 00:00:00 2001 From: Michael Weber Date: Mon, 7 May 2018 17:49:47 +0200 Subject: [PATCH] Disable unused return code warning for unreachable code. --- client/client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/client.c b/client/client.c index 58c66b2..5053d40 100644 --- a/client/client.c +++ b/client/client.c @@ -663,7 +663,10 @@ static void signal_exit(int sig) signal(SIGINT, SIG_IGN); signal(SIGTERM, SIG_IGN); + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wunused-result" write(pipefd[1], &signum, 1); + #pragma GCC diagnostic pop } static int scan_process(struct process *process)