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 23:26:47 +0100
commit79eb7623efb3105094dcb77f8688e39b8288155e (patch)
tree85657479c22e498f908b10cb01b8df18b6911370 /test/run_encoder.c
parentb9e64d04720cc114aa405a86332b7cb1321db8c6 (diff)
downloadmpd-79eb7623efb3105094dcb77f8688e39b8288155e.tar.gz
mpd-79eb7623efb3105094dcb77f8688e39b8288155e.tar.xz
mpd-79eb7623efb3105094dcb77f8688e39b8288155e.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 4b512d46a..16e633029 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)