diff options
author | Niklas Haas <git@nand.wakku.to> | 2016-06-07 13:39:43 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-06-07 14:12:33 +0200 |
commit | 5b5db336e93622dc4c54e02a42a39d1b3b1a9fbd (patch) | |
tree | 884d1b3e84ff5d51879ee351bc84aaadc024ada0 /stream/stream.c | |
parent | 38ac5d5e7ba2e9a7234c45d431ef9b885f787a2c (diff) | |
download | mpv-5b5db336e93622dc4c54e02a42a39d1b3b1a9fbd.tar.bz2 mpv-5b5db336e93622dc4c54e02a42a39d1b3b1a9fbd.tar.xz |
build: silence -Wunused-result
For clang, it's enough to just put (void) around usages we are
intentionally ignoring the result of.
Since GCC does not seem to want to respect this decision, we are forced
to disable the warning globally.
Diffstat (limited to 'stream/stream.c')
-rw-r--r-- | stream/stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream.c b/stream/stream.c index 5e57ff701d..846765f326 100644 --- a/stream/stream.c +++ b/stream/stream.c @@ -978,7 +978,7 @@ struct mp_cancel *mp_cancel_new(void *talloc_ctx) void mp_cancel_trigger(struct mp_cancel *c) { atomic_store(&c->triggered, true); - write(c->wakeup_pipe[1], &(char){0}, 1); + (void)write(c->wakeup_pipe[1], &(char){0}, 1); } // Restore original state. (Allows reusing a mp_cancel.) |