aboutsummaryrefslogtreecommitdiffstats
path: root/test/run_encoder.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 /test/run_encoder.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--test/run_encoder.c5
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)