diff options
author | Max Kellermann <max@duempel.org> | 2012-03-19 20:37:17 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-03-19 23:26:47 +0100 |
commit | 79eb7623efb3105094dcb77f8688e39b8288155e (patch) | |
tree | 85657479c22e498f908b10cb01b8df18b6911370 /src/event_pipe.c | |
parent | b9e64d04720cc114aa405a86332b7cb1321db8c6 (diff) | |
download | mpd-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.c | 3 |
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); } |