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

View file

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