[virt-tools-list] [PATCH virt-viewer 4/4] Fix missing field initializers

Pavel Grunt pgrunt at redhat.com
Thu Jun 23 13:26:14 UTC 2016


On Thu, 2016-06-23 at 10:15 -0300, Eduardo Lima (Etrunko) wrote:
> On 06/22/2016 05:16 PM, Pavel Grunt wrote:
> > On Wed, 2016-06-22 at 14:59 -0300, Eduardo Lima (Etrunko) wrote:
> > > This is not actually necessary as of C99. You only need to initialize
> > > any field of a structure to get all other fields initialized too.
> > 
> > yes, I was just annoyed by the warning..
> 
> 
> Interesting, can you share what was exactly the warning message? Clang
> as a modern compiler should be able to handle this case.
> 

virt-viewer-window.c:1164:31: warning: missing field 'accel_mods' initializer
      [-Wmissing-field-initializers]
        GtkAccelKey key = { 0 };

maybe it is needed to pass something like "--std=c99" to the compiler

Pavel




More information about the virt-tools-list mailing list