mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-24 05:25:18 +00:00
build: fix "missing initializer" error in qemu_process.c
Found when attempting to build on Fedora 17 alpha with: ./autogen.sh --system --enable-compile-warnings=error (this same build command works without problem on Fedora 16). Since the consumer of the qemuProcessReconnectData doesn't assume that the other fields of the struct are initialized (although it uses them internally), the simpler solution is to just switch to C99-style struct initialization (which doesn't require specification of all fields).
This commit is contained in:
parent
05c25e6071
commit
ecb4d92d57
@ -3255,7 +3255,7 @@ error:
|
||||
void
|
||||
qemuProcessReconnectAll(virConnectPtr conn, struct qemud_driver *driver)
|
||||
{
|
||||
struct qemuProcessReconnectData data = {conn, driver};
|
||||
struct qemuProcessReconnectData data = {.conn = conn, .driver = driver};
|
||||
virHashForEach(driver->domains.objs, qemuProcessReconnectHelper, &data);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user