Skip to content

Commit

Permalink
Silence a warning about write() result being unused.
Browse files Browse the repository at this point in the history
  • Loading branch information
LemonBoy committed Apr 23, 2016
1 parent 3dbdf9d commit 40f08d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lemonbar.c
Original file line number Diff line number Diff line change
Expand Up @@ -1375,8 +1375,8 @@ main (int argc, char **argv)
area_t *area = area_get(press_ev->event, press_ev->detail, press_ev->event_x);
// Respond to the click
if (area) {
write(STDOUT_FILENO, area->cmd, strlen(area->cmd));
write(STDOUT_FILENO, "\n", 1);
(void)write(STDOUT_FILENO, area->cmd, strlen(area->cmd));
(void)write(STDOUT_FILENO, "\n", 1);
}
}
break;
Expand Down

0 comments on commit 40f08d5

Please sign in to comment.