From c69a974d8ebc6d80a1e0deddae28883a494053f4 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 19 Apr 2017 09:17:00 -0400 Subject: [PATCH] Merge pull request #1183 from sleep-walker/master explicitly ignore unused return value --- 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); }