diff options
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 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) |