Merge pull request #1183 from sleep-walker/master

explicitly ignore unused return value
This commit is contained in:
Drew DeVault 2017-04-19 09:17:00 -04:00 committed by GitHub
commit 382b678100

View file

@ -940,8 +940,8 @@ static void invoke_swaybar(struct bar_config *bar) {
if (!command) { if (!command) {
const char msg[] = "Unable to allocate swaybar command string"; const char msg[] = "Unable to allocate swaybar command string";
int len = sizeof(msg); int len = sizeof(msg);
write(filedes[1], &len, sizeof(int)); if (write(filedes[1], &len, sizeof(int))) {};
write(filedes[1], msg, len); if (write(filedes[1], msg, len)) {};
close(filedes[1]); close(filedes[1]);
_exit(EXIT_FAILURE); _exit(EXIT_FAILURE);
} }