aboutsummaryrefslogtreecommitdiffstats
path: root/src/event_pipe.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-03-19 20:37:17 +0100
committerMax Kellermann <max@duempel.org>2012-03-19 23:26:47 +0100
commit79eb7623efb3105094dcb77f8688e39b8288155e (patch)
tree85657479c22e498f908b10cb01b8df18b6911370 /src/event_pipe.c
parentb9e64d04720cc114aa405a86332b7cb1321db8c6 (diff)
downloadmpd-79eb7623efb3105094dcb77f8688e39b8288155e.tar.gz
mpd-79eb7623efb3105094dcb77f8688e39b8288155e.tar.xz
mpd-79eb7623efb3105094dcb77f8688e39b8288155e.zip
event_pipe, test: explicitly ignore write() return value
Some compilers are very picky, but we really aren't interested in the return value.
Diffstat (limited to 'src/event_pipe.c')
-rw-r--r--src/event_pipe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/event_pipe.c b/src/event_pipe.c
index 5b519984f..484b7a625 100644
--- a/src/event_pipe.c
+++ b/src/event_pipe.c
@@ -159,5 +159,6 @@ void event_pipe_emit_fast(enum pipe_event event)
assert((unsigned)event < PIPE_EVENT_MAX);
pipe_events[event] = true;
- (void)write(event_pipe[1], "", 1);
+
+ G_GNUC_UNUSED ssize_t nbytes = write(event_pipe[1], "", 1);
}