GTK+ needs C11 type redefinition feature but meson.build has c_std=gnu99
GTK+ seems to require the compiler to support C11 type redefinition, but it sets c_std
to gnu99
in meson.build
. This causes hundreds of warnings to be shown when compiling with clang:
../../source/gtk+/gtk/gtksnapshot.h:39:40: warning: redefinition of typedef 'GtkSnapshot' is a C11 feature [-Wtypedef-redefinition]
typedef GdkSnapshot GtkSnapshot;
^
../../source/gtk+/gtk/gtktypes.h:42:40: note: previous definition is here
typedef GdkSnapshot GtkSnapshot;
^
1 warning generated.