]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix build with clang 6.0.0
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Sun, 11 Mar 2018 15:27:22 +0000 (19:27 +0400)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Mon, 12 Mar 2018 16:04:08 +0000 (20:04 +0400)
commit1b6ff36c2f506a3b939411e322f4c9f51d33c7d6
treebaaf8b997a09a8d683ea18616d88217977f97328
parentea9b0e580a9f171db0fdb398ee055834e134d05a
Fix build with clang 6.0.0

Clang 6.0.0 complains when initializing structure with { NULL }:

conf/domain_addr.c:1494:38: error: missing field 'type' initializer [-Werror,-Wmissing-field-initializers]
    virDomainDeviceInfo nfo = { NULL };

Use { 0 } instead to make it happy.

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_addr.c
tests/sysinfotest.c