]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: fix warning with old GCC about missing struct initializer
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 9 Dec 2019 14:37:20 +0000 (14:37 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 9 Dec 2019 14:46:13 +0000 (14:46 +0000)
commit10be7f3ce06da3498698c875d690fe24bffe9cfa
tree97522a89020f1c0d3a53c30b7206dc74da5509a6
parent4ce7e743dfe4177197909814e62636446cac4012
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>
tests/openvzutilstest.c