mirror of
https://github.com/sstefani/mtrace.git
synced 2025-12-07 01:06:41 +08:00
Disable unused return code warning for unreachable code.
This commit is contained in:
parent
c97313611e
commit
05427b0efb
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user