event_pipe, test: explicitly ignore write() return value

Some compilers are very picky, but we really aren't interested in the
return value.
This commit is contained in:
Max Kellermann
2012-03-19 20:37:17 +01:00
parent 351ac4a2c0
commit 36827e1134
8 changed files with 12 additions and 9 deletions

View File

@@ -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);