From 974be01e83a26b6c5989e2b45e20399f45b08826 Mon Sep 17 00:00:00 2001 From: Tomáš Čech Date: Wed, 19 Apr 2017 10:15:11 +0200 Subject: explicitly ignore unused return value fixes issue#1182 --- sway/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sway/config.c b/sway/config.c index ae09d4f8..0014b33a 100644 --- a/sway/config.c +++ b/sway/config.c @@ -940,8 +940,8 @@ static void invoke_swaybar(struct bar_config *bar) { if (!command) { const char msg[] = "Unable to allocate swaybar command string"; int len = sizeof(msg); - write(filedes[1], &len, sizeof(int)); - write(filedes[1], msg, len); + if (write(filedes[1], &len, sizeof(int))) {}; + if (write(filedes[1], msg, len)) {}; close(filedes[1]); _exit(EXIT_FAILURE); } -- cgit v1.2.3