aboutsummaryrefslogtreecommitdiffstats
path: root/test/run_normalize.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_normalize.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_normalize.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/run_normalize.c b/test/run_normalize.c
index d16ed60ea..fc26829ed 100644
--- a/test/run_normalize.c
+++ b/test/run_normalize.c
@@ -65,7 +65,8 @@ int main(int argc, char **argv)
while ((nbytes = read(0, buffer, sizeof(buffer))) > 0) {
Compressor_Process_int16(compressor,
(int16_t *)buffer, nbytes / 2);
- write(1, buffer, nbytes);
+
+ G_GNUC_UNUSED ssize_t ignored = write(1, buffer, nbytes);
}
Compressor_delete(compressor);