Quench the anger of GCC
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 19 Apr 2022 14:33:21 +0000 (15:33 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Tue, 19 Apr 2022 14:33:21 +0000 (15:33 +0100)
commit4dcd02e85315f487310e2e01fe9412706a77dc35
tree8eff689f9bfb57ff4c43b057426858605cc5aef8
parent8e28b0765ca8335bb14011325a99712f4a3a21b7
Quench the anger of GCC

Direct access of the fields of the union trips compiler warnings with
GCC 12, such as:

  ../gtk/gtkimagedefinition.c:135:13: error: array subscript
  ‘GtkImageDefinition {aka union _GtkImageDefinition}[0]’ is partly
  outside array bounds of ‘GtkImageDefinitionEmpty[1]’ {aka
  ‘struct _GtkImageDefinitionEmpty[1]’} [-Werror=array-bounds]
gtk/gtkimagedefinition.c