[libvirt] [PATCH] Fix build with clang 6.0.0
Roman Bogorodskiy
bogorodskiy at gmail.com
Mon Mar 12 16:05:54 UTC 2018
Michal Privoznik wrote:
> 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
Pushed, thanks!
> Michal
Roman Bogorodskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180312/9dd3df7d/attachment-0001.sig>
More information about the libvir-list
mailing list