[libvirt] [PATCH] Fix build with clang 6.0.0
Michal Privoznik
mprivozn at redhat.com
Mon Mar 12 06:54:22 UTC 2018
On 03/11/2018 04:38 PM, Roman Bogorodskiy wrote:
> 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.
> ---
> src/conf/domain_addr.c | 2 +-
> tests/sysinfotest.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
ACK
Michal
More information about the libvir-list
mailing list