mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-31 10:05:31 +00:00
bhyve: fix build with gcc48
Build with gcc 4.8 fails with: bhyve/bhyve_monitor.c: In function 'bhyveMonitorIO': bhyve/bhyve_monitor.c:51:18: error: missing initializer for field 'tv_sec' of 'const struct timespec' [-Werror=missing-field-initializers] const struct timespec zerowait = {}; Explicitly initialize zerowait to fix the build.
This commit is contained in:
parent
dd42ff0795
commit
fcac0cf7e9
@ -48,7 +48,7 @@ struct _bhyveMonitor {
|
||||
static void
|
||||
bhyveMonitorIO(int watch, int kq, int events ATTRIBUTE_UNUSED, void *opaque)
|
||||
{
|
||||
const struct timespec zerowait = {};
|
||||
const struct timespec zerowait = { 0, 0 };
|
||||
bhyveMonitorPtr mon = opaque;
|
||||
struct kevent kev;
|
||||
int rc, status;
|
||||
|
Loading…
Reference in New Issue
Block a user