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; } }