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 20:37:25 +0100
commit36827e11346cc3076e608ae5137afb0f7fb7c65a (patch)
tree1fd87cfc0d7d0a80f9a545715d3c657859dece1f /src/event_pipe.c
parent351ac4a2c0a6dfa0774e98d9b5a3d9db33e01274 (diff)
downloadmpd-36827e11346cc3076e608ae5137afb0f7fb7c65a.tar.gz
mpd-36827e11346cc3076e608ae5137afb0f7fb7c65a.tar.xz
mpd-36827e11346cc3076e608ae5137afb0f7fb7c65a.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 '')
-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 85fd6d917..d5c3b9564 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);
}