[client] make gcc happy about the ignored read result

Fixes #5
This commit is contained in:
Geoffrey McRae 2017-12-15 00:57:49 +11:00
parent 973ad5e2b0
commit cd54cb179b

View File

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