mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
tests: fix warning with old GCC about missing struct initializer
Old GCC isn't happy about the {0} initializer because the first field in the struct is itself a struct. ../../tests/openvzutilstest.c: In function 'testReadNetworkConf': ../../tests/openvzutilstest.c:101:12: error: missing braces around initializer [-Werror=missing-braces] struct openvz_driver driver = {0}; ^ This fixes commit 4a4132b4625778cf80acb9c92d06351b44468ac3 Signed-off-by: Daniel Berrange <berrange@localhost.localdomain>
This commit is contained in:
parent
4ce7e743df
commit
10be7f3ce0
@ -98,10 +98,10 @@ testReadNetworkConf(const void *data G_GNUC_UNUSED)
|
|||||||
" </interface>\n"
|
" </interface>\n"
|
||||||
" </devices>\n"
|
" </devices>\n"
|
||||||
"</domain>\n";
|
"</domain>\n";
|
||||||
struct openvz_driver driver = {0};
|
struct openvz_driver driver = {
|
||||||
|
.xmlopt = openvzXMLOption(&driver),
|
||||||
driver.xmlopt = openvzXMLOption(&driver);
|
.caps = openvzCapsInit(),
|
||||||
driver.caps = openvzCapsInit();
|
};
|
||||||
|
|
||||||
if (!(def = virDomainDefNew()))
|
if (!(def = virDomainDefNew()))
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user