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

Andrea Bolognani abologna at redhat.com
Fri May 11 15:39:41 UTC 2018


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




More information about the Libosinfo mailing list