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 /audio/out/ao_oss.c | |
parent | 38ac5d5e7ba2e9a7234c45d431ef9b885f787a2c (diff) |
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 'audio/out/ao_oss.c')
-rw-r--r-- | audio/out/ao_oss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/out/ao_oss.c b/audio/out/ao_oss.c index 393c9db780..3216d673e1 100644 --- a/audio/out/ao_oss.c +++ b/audio/out/ao_oss.c @@ -462,7 +462,7 @@ static int init(struct ao *ao) p->buffersize = 0; memset(data, 0, p->outburst); while (p->buffersize < 0x40000 && device_writable(ao) > 0) { - write(p->audio_fd, data, p->outburst); + (void)write(p->audio_fd, data, p->outburst); p->buffersize += p->outburst; } free(data); |