Skip to content

Quench the anger of GCC

Emmanuele Bassi requested to merge ebassi/for-main into main

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]

Merge request reports