Re: [PATCH] tools: Fix compilation with Clang 6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2018-05-11 at 10:10 -0500, Eric Blake wrote:
> On 05/11/2018 10:01 AM, Andrea Bolognani wrote:
> > Clang 6 doesn't like the way the last item in a GOptionEntry
> > array is initialized:
> > 
> >    ../../tools/osinfo-install-script.c:87:12: error: missing field
> >    'short_name' initializer [-Werror,-Wmissing-field-initializers]
> >        { NULL }
> >               ^
> 
> Does it work without warning with the simpler:
> 
> { 0 }

Yeah, this version works too. I'll respin in a minute.

-- 
Andrea Bolognani / Red Hat / Virtualization

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux