提交 ecb4d92d 编写于 作者: L Laine Stump

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).
上级 05c25e60
...@@ -3255,7 +3255,7 @@ error: ...@@ -3255,7 +3255,7 @@ error:
void void
qemuProcessReconnectAll(virConnectPtr conn, struct qemud_driver *driver) 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); virHashForEach(driver->domains.objs, qemuProcessReconnectHelper, &data);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册