From cd54cb179b021fdeafd67925af1b44cb14b01437 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 15 Dec 2017 00:57:49 +1100 Subject: [PATCH] [client] make gcc happy about the ignored read result Fixes #5 --- client/ivshmem/ivshmem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/ivshmem/ivshmem.c b/client/ivshmem/ivshmem.c index 70907559..d77e1d39 100644 --- a/client/ivshmem/ivshmem.c +++ b/client/ivshmem/ivshmem.c @@ -511,7 +511,8 @@ enum IVSHMEMWaitResult ivshmem_wait_irq(uint16_t vector, unsigned int timeout) if (FD_ISSET(fd, &fds)) { uint64_t kick; - read(fd, &kick, sizeof(kick)); + int unused = read(fd, &kick, sizeof(kick)); + (void)unused; return IVSHMEM_WAIT_RESULT_OK; } }