signal_child: use "(void) res" to silence compiler warning

Fixes https://github.com/awesomeWM/awesome/issues/2418.
This commit is contained in:
Daniel Hahler 2018-10-06 22:49:29 +02:00
parent c21e8b980a
commit aaed083755
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);
} }