nobodino |
05-15-2022 12:26 AM |
regression on -current with gtk4 (gcc-12.1.0)
gtk4 doesn't build with gcc-12.1.0:
Code:
In function ‘gtk_image_definition_ref’,
inlined from ‘gtk_image_definition_new_empty’ at ../gtk/gtkimagedefinition.c:67:10:
../gtk/gtkimagedefinition.c:135:23: error: array subscript ‘GtkImageDefinition {aka union _GtkImageDefinition}[0]’ is partly outside array bounds of ‘GtkImageDefinitionEmpty[1]’ {aka ‘struct _GtkImageDefinitionEmpty[1]’} [-Werror=array-bounds]
135 | def->empty.ref_count++;
| ~~~~~~~~~~~~~~~~~~~~^~
../gtk/gtkimagedefinition.c: In function ‘gtk_image_definition_new_empty’:
../gtk/gtkimagedefinition.c:65:34: note: object ‘empty’ of size 8
65 | static GtkImageDefinitionEmpty empty = { GTK_IMAGE_EMPTY, 1 };
| ^~~~~
cc1: some warnings being treated as errors
[712/1262] Compiling C object gtk/libgtk.a.p/gtkbitset.c.o
ninja: build stopped: subcommand failed.
It doesn't build neither with gtk4-4.4.2.
|