Quench the anger of GCC
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 19 Apr 2022 14:33:21 +0000 (15:33 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 21 Apr 2022 23:27:48 +0000 (19:27 -0400)
commite17d51df66f960d064722712c1e18a59f217368c
tree2d7166ebf29ee0bb4ad934132c0558a8e7cb0067
parent01f63c87b22aafc11c12e0e6eb3911750124d9f6
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