Merge pull request #2420 from blueyed/void

signal_child: use "(void) res" to silence compiler warning
This commit is contained in:
mergify[bot] 2018-10-06 22:59:18 +00:00 committed by GitHub
commit 7ca8f3618c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -463,6 +463,7 @@ signal_child(int signum)
{ {
assert(signum == SIGCHLD); assert(signum == SIGCHLD);
int res = write(sigchld_pipe[1], " ", 1); int res = write(sigchld_pipe[1], " ", 1);
(void) res;
assert(res == 1); assert(res == 1);
} }