diff options
author | Max Kellermann <max@duempel.org> | 2012-03-19 20:37:17 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-03-19 20:37:25 +0100 |
commit | 36827e11346cc3076e608ae5137afb0f7fb7c65a (patch) | |
tree | 1fd87cfc0d7d0a80f9a545715d3c657859dece1f /test/run_encoder.c | |
parent | 351ac4a2c0a6dfa0774e98d9b5a3d9db33e01274 (diff) | |
download | mpd-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 'test/run_encoder.c')
-rw-r--r-- | test/run_encoder.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/run_encoder.c b/test/run_encoder.c index 5e6b158c6..3b3ec7240 100644 --- a/test/run_encoder.c +++ b/test/run_encoder.c @@ -36,8 +36,9 @@ encoder_to_stdout(struct encoder *encoder) size_t length; static char buffer[32768]; - while ((length = encoder_read(encoder, buffer, sizeof(buffer))) > 0) - write(1, buffer, length); + while ((length = encoder_read(encoder, buffer, sizeof(buffer))) > 0) { + G_GNUC_UNUSED ssize_t ignored = write(1, buffer, length); + } } int main(int argc, char **argv) |