event_pipe, test: explicitly ignore write() return value

Some compilers are very picky, but we really aren't interested in the
return value.
This commit is contained in:
Max Kellermann
2012-03-19 20:37:17 +01:00
parent b9e64d0472
commit 79eb7623ef
7 changed files with 11 additions and 8 deletions

View File

@@ -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);
}