explcitly ignore return values of some functions marked with gcc's warn_unused_result attribute

This commit is contained in:
Lennart Poettering 2009-04-14 01:22:42 +02:00
parent 845b312f44
commit 40d71e1f49
3 changed files with 4 additions and 4 deletions

View file

@ -139,7 +139,7 @@ static void signal_handler(int sig) {
write_err("Soft CPU time limit exhausted, terminating.\n");
/* Try a soft cleanup */
write(the_pipe[1], &c, sizeof(c));
(void) write(the_pipe[1], &c, sizeof(c));
phase = PHASE_SOFT;
reset_cpu_time(CPUTIME_INTERVAL_HARD);