46.alpha fails to compile with gcc 14.x (due to -Wincompatible-pointer-types being an error)
Looks like last version build fails with latest gcc 14.x which is now used in fedora rawhide.
Build fails with
[tkloczko@pers-jacek x86_64-redhat-linux-gnu]$ ninja -k 0
[1/4] Compiling C object src/swell-foop.p/meson-generated_swell-foop.c.o
FAILED: src/swell-foop.p/meson-generated_swell-foop.c.o
/usr/bin/gcc -Isrc/swell-foop.p -Isrc -I../src -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -I/usr/include/gnome-games-support-2 -I/usr/include/gee-0.8 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -w -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Os -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -pthread '-DDATADIR="/usr/share/swell-foop"' '-DLOCALEDIR="/usr/share/locale"' '-DGETTEXT_PACKAGE="swell-foop"' -MD -MQ src/swell-foop.p/meson-generated_swell-foop.c.o -MF src/swell-foop.p/meson-generated_swell-foop.c.o.d -o src/swell-foop.p/meson-generated_swell-foop.c.o -c src/swell-foop.p/swell-foop.c
../src/swell-foop.vala: In function ‘swell_foop_real_startup’:
../src/swell-foop.vala:52:77: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
52 | set_accels_for_action ("app.help", { "F1" });
| ^~~~~~
| |
| gchar ** {aka char **}
In file included from /usr/include/gtk-4.0/gtk/gtkwindow.h:32,
from /usr/include/gtk-4.0/gtk/gtkaboutdialog.h:29,
from /usr/include/gtk-4.0/gtk/gtk.h:33,
from src/swell-foop.p/swell-foop.c:14:
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/swell-foop.vala:53:89: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
53 | set_accels_for_action ("win.toggle-hamburger", { "F10" });
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/swell-foop.vala:54:81: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
54 | set_accels_for_action ("win.new-game", { "<Primary>n" });
| ^~~
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/swell-foop.vala:55:77: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
55 | set_accels_for_action ("app.quit", { "<Primary>q" });
| ^~~~~~~
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/swell-foop.vala:56:77: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
56 | set_accels_for_action ("win.undo", { "<Primary>z" });
| ^~~~~~~
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/swell-foop.vala:57:77: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
57 | set_accels_for_action ("win.redo", { "<Shift><Primary>z" });
| ^~~~~~~
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
[2/4] Compiling C object src/swell-foop.p/meson-generated_game.c.o
FAILED: src/swell-foop.p/meson-generated_game.c.o
/usr/bin/gcc -Isrc/swell-foop.p -Isrc -I../src -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -I/usr/include/gnome-games-support-2 -I/usr/include/gee-0.8 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -w -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Os -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -pthread '-DDATADIR="/usr/share/swell-foop"' '-DLOCALEDIR="/usr/share/locale"' '-DGETTEXT_PACKAGE="swell-foop"' -MD -MQ src/swell-foop.p/meson-generated_game.c.o -MF src/swell-foop.p/meson-generated_game.c.o.d -o src/swell-foop.p/meson-generated_game.c.o -c src/swell-foop.p/game.c
../src/game.vala: In function ‘game_get_saved_game’:
../src/game.vala:525:27: error: passing argument 2 of ‘g_list_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
525 | reversed_history.@foreach ((data) => {
| ^~~~~~~~~~~~~~~~~
| |
| void (*)(const void *, void *)
In file included from /usr/include/glib-2.0/glib/ghash.h:36,
from /usr/include/glib-2.0/glib.h:52,
from /usr/include/glib-2.0/gobject/gbinding.h:30,
from /usr/include/glib-2.0/glib-object.h:24,
from src/swell-foop.p/game.c:14:
/usr/include/glib-2.0/glib/glist.h:139:60: note: expected ‘GFunc’ {aka ‘void (*)(void *, void *)’} but argument is of type ‘void (*)(const void *, void *)’
139 | GFunc func,
| ~~~~~~~~~~~~~~~~~~^~~~
[3/4] Compiling C object src/swell-foop.p/meson-generated_window.c.o
FAILED: src/swell-foop.p/meson-generated_window.c.o
/usr/bin/gcc -Isrc/swell-foop.p -Isrc -I../src -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -I/usr/include/gnome-games-support-2 -I/usr/include/gee-0.8 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -w -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Os -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -pthread '-DDATADIR="/usr/share/swell-foop"' '-DLOCALEDIR="/usr/share/locale"' '-DGETTEXT_PACKAGE="swell-foop"' -MD -MQ src/swell-foop.p/meson-generated_window.c.o -MF src/swell-foop.p/meson-generated_window.c.o.d -o src/swell-foop.p/meson-generated_window.c.o -c src/swell-foop.p/window.c
../src/window.vala: In function ‘swell_foop_window_show_new_game_confirmation_dialog’:
../src/window.vala:457:49: error: passing argument 2 of ‘gtk_alert_dialog_set_buttons’ from incompatible pointer type [-Wincompatible-pointer-types]
457 | dialog.buttons = {
| ^
| |
| gchar ** {aka char **}
In file included from /usr/include/gtk-4.0/gtk/gtk.h:40,
from src/swell-foop.p/window.c:25:
/usr/include/gtk-4.0/gtk/gtkalertdialog.h:66:75: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
66 | const char * const *labels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
ninja: build stopped: cannot make progress due to previous errors.