From 40d71e1f4914e021f321425a37825933b595a860 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 14 Apr 2009 01:22:42 +0200 Subject: explcitly ignore return values of some functions marked with gcc's warn_unused_result attribute --- src/daemon/cpulimit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/daemon/cpulimit.c') diff --git a/src/daemon/cpulimit.c b/src/daemon/cpulimit.c index 64728e27..45d6a0fb 100644 --- a/src/daemon/cpulimit.c +++ b/src/daemon/cpulimit.c @@ -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); -- cgit