diff options
author | Matt Turner <mattst88@gmail.com> | 2015-03-28 11:40:24 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2015-03-28 11:40:24 -0700 |
commit | 4f5bf74c275ecc33a6bc4c7c2ef0ca2f7439cc1d (patch) | |
tree | c0f315b8b46458c8759414d9c8fe16a2a8fe73d8 | |
parent | ee4869070a5b1f64770310bbf91c214ec3bb39ba (diff) |
run.c: Silence unused result warnings about write().
If write() fails in a signal handler, really, what are you going to do?
-rw-r--r-- | run.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -238,6 +238,8 @@ int max_threads; #define sigputs(str) write(STDERR_FILENO, str, strlen(str)) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-result" static void abort_handler(int signo) { @@ -252,6 +254,7 @@ abort_handler(int signo) sigputs("\n"); _exit(-1); } +#pragma GCC diagnostic pop struct platform { const char *name; |