From 40d71e1f4914e021f321425a37825933b595a860 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 14 Apr 2009 01:22:42 +0200 Subject: explcitly ignore return values of some functions marked with gcc's warn_unused_result attribute --- src/tests/mainloop-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tests/mainloop-test.c') diff --git a/src/tests/mainloop-test.c b/src/tests/mainloop-test.c index d8926233..4ca63513 100644 --- a/src/tests/mainloop-test.c +++ b/src/tests/mainloop-test.c @@ -46,7 +46,7 @@ static pa_defer_event *de; static void iocb(pa_mainloop_api*a, pa_io_event *e, int fd, pa_io_event_flags_t f, void *userdata) { unsigned char c; - read(fd, &c, sizeof(c)); + (void) read(fd, &c, sizeof(c)); fprintf(stderr, "IO EVENT: %c\n", c < 32 ? '.' : c); a->defer_enable(de, 1); } -- cgit