[Spice-devel] [PATCH server] tests: Initialize all members of SpiceBaseInterface struct

Michal Privoznik mprivozn at redhat.com
Thu Jun 22 15:39:07 UTC 2017


On 06/22/2017 05:20 PM, Frediano Ziglio wrote:
>>
>> When compiling, -Werror=missing-field-initializers is enabled.
>> However, gcc fails to see that all the members of the
>> SpiceBaseInterface struct are initialized:
>>
>> test-display-base.c:844:5: error: missing initializer for field
>> 'description' of 'SpiceBaseInterface'
>> [-Werror=missing-field-initializers] .base.description   = "test
>> spice virtual channel char device",
>>
> 
> In my environment it compile without problems. Which compiler
> and version are you using? Can you add this information to the
> commit message?

Sure:

$ gcc --version
gcc (Gentoo 4.9.4 p1.0, pie-0.6.4) 4.9.4
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Also, this is a gentoo box. I don't have a commit rights, so do you want me to update the commit message and resend? Or will the commiter fix this before pushing?

Michal


More information about the Spice-devel mailing list