summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2015-03-28 11:40:24 -0700
committerMatt Turner <mattst88@gmail.com>2015-03-28 11:40:24 -0700
commit4f5bf74c275ecc33a6bc4c7c2ef0ca2f7439cc1d (patch)
treec0f315b8b46458c8759414d9c8fe16a2a8fe73d8
parentee4869070a5b1f64770310bbf91c214ec3bb39ba (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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/run.c b/run.c
index 7099b6a..efdf215 100644
--- a/run.c
+++ b/run.c
@@ -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;