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/3] Compiling C object src/lightsoff.p/meson-generated_lightsoff.c.o
FAILED: src/lightsoff.p/meson-generated_lightsoff.c.o
/usr/bin/gcc -Isrc/lightsoff.p -Isrc -I../src -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/librsvg-2.0 -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 -pthread '-DDATADIR="/usr/share/lightsoff"' '-DLOCALEDIR="/usr/share/locale"' '-DGETTEXT_PACKAGE="lightsoff"' -MD -MQ src/lightsoff.p/meson-generated_lightsoff.c.o -MF src/lightsoff.p/meson-generated_lightsoff.c.o.d -o src/lightsoff.p/meson-generated_lightsoff.c.o -c src/lightsoff.p/lightsoff.c
../src/lightsoff.vala: In function ‘lights_off_real_startup’:
../src/lightsoff.vala:92:77: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
92 | set_accels_for_action ("app.quit", { "<Primary>q" });
| ^~~~~~
| |
| gchar ** {aka char **}
In file included from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
from /usr/include/gtk-3.0/gtk/gtk.h:31,
from src/lightsoff.p/lightsoff.c:16:
/usr/include/gtk-3.0/gtk/gtkapplication.h:156:89: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’}
156 | const gchar * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/lightsoff.vala:93:77: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
93 | set_accels_for_action ("app.help", { "F1" });
| ^~~~~~
| |
| gchar ** {aka char **}
/usr/include/gtk-3.0/gtk/gtkapplication.h:156:89: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’}
156 | const gchar * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/lightsoff.vala:96:81: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
96 | set_accels_for_action ("win.new-game", { "<Primary>n" });
| ^~~
| |
| gchar ** {aka char **}
/usr/include/gtk-3.0/gtk/gtkapplication.h:156:89: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’}
156 | const gchar * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/lightsoff.vala:97:87: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
97 | set_accels_for_action ("win.previous-level", { "<Primary>Page_Up" });
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-3.0/gtk/gtkapplication.h:156:89: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’}
156 | const gchar * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/lightsoff.vala:98:83: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
98 | set_accels_for_action ("win.next-level", { "<Primary>Page_Down" });
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-3.0/gtk/gtkapplication.h:156:89: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’}
156 | const gchar * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/lightsoff.vala:101:80: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
101 | set_accels_for_action ("win.restart", { "<Primary>r" });
| ^~~~
| |
| gchar ** {aka char **}
/usr/include/gtk-3.0/gtk/gtkapplication.h:156:89: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’}
156 | const gchar * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
[2/3] Compiling C object src/lightsoff.p/meson-generated_board-view-gtk.c.o
FAILED: src/lightsoff.p/meson-generated_board-view-gtk.c.o
/usr/bin/gcc -Isrc/lightsoff.p -Isrc -I../src -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/librsvg-2.0 -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 -pthread '-DDATADIR="/usr/share/lightsoff"' '-DLOCALEDIR="/usr/share/locale"' '-DGETTEXT_PACKAGE="lightsoff"' -MD -MQ src/lightsoff.p/meson-generated_board-view-gtk.c.o -MF src/lightsoff.p/meson-generated_board-view-gtk.c.o.d -o src/lightsoff.p/meson-generated_board-view-gtk.c.o -c src/lightsoff.p/board-view-gtk.c
../src/board-view-gtk.vala: In function ‘_board_view_handle_toggle_gtk_toggle_button_toggled’:
../src/board-view-gtk.vala:59:47: error: passing argument 2 of ‘board_view_handle_toggle’ from incompatible pointer type [-Wincompatible-pointer-types]
59 | @foreach((light) => ((ToggleButton)light).toggled.disconnect (handle_toggle));
| ^~~~~~~
| |
| GtkToggleButton * {aka struct _GtkToggleButton *}
src/lightsoff.p/board-view-gtk.c:111:41: note: expected ‘GObject *’ {aka ‘struct _GObject *’} but argument is of type ‘GtkToggleButton *’ {aka ‘struct _GtkToggleButton *’}
111 | GObject* light);
| ~~~~~~~~~^~~~~
ninja: build stopped: cannot make progress due to previous errors.