From 7d17fa5040b0f1ea0a75bb315272b49a9356bc7d Mon Sep 17 00:00:00 2001 From: "Timothy M. Schaeffer" Date: Thu, 30 Oct 2014 22:00:24 -0400 Subject: [PATCH] Avoid compiler warning about ignore return from write. --- bar.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bar.c b/bar.c index d7e4c56..047b6bd 100644 --- a/bar.c +++ b/bar.c @@ -1141,8 +1141,9 @@ main (int argc, char **argv) area_t *area = area_get(press_ev->event, press_ev->event_x); /* Respond to the click */ if (area && area->button == press_ev->detail) { - write(STDOUT_FILENO, area->cmd, strlen(area->cmd)); - write(STDOUT_FILENO, "\n", 1); + ssize_t n; + n = write(STDOUT_FILENO, area->cmd, strlen(area->cmd)); + n = write(STDOUT_FILENO, "\n", 1); } } break;