3.38.1: is not gcc 14.x ready
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/11] Compiling C object src/iagno-tests.p/meson-generated_computer-reversi.c.o
FAILED: src/iagno-tests.p/meson-generated_computer-reversi.c.o
/usr/bin/gcc -Isrc/iagno-tests.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -w '-DGETTEXT_PACKAGE="iagno"' -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 -MD -MQ src/iagno-tests.p/meson-generated_computer-reversi.c.o -MF src/iagno-tests.p/meson-generated_computer-reversi.c.o.d -o src/iagno-tests.p/meson-generated_computer-reversi.c.o -c src/iagno-tests.p/computer-reversi.c
../src/computer-reversi.vala: In function ‘computer_reverse_hard_init_heuristic’:
../src/computer-reversi.vala:249:30: error: passing argument 1 of ‘_vala_array_dup2’ from incompatible pointer type [-Wincompatible-pointer-types]
249 | _heuristic = heuristic_8;
| ^~~~~~~~
| |
| const gint16 (*)[8] {aka const short int (*)[8]}
computer-reversi.c:1617:27: note: expected ‘gint16 *’ {aka ‘short int *’} but argument is of type ‘const gint16 (*)[8]’ {aka ‘const short int (*)[8]’}
../src/computer-reversi.vala: In function ‘computer_reversi_hard_init_heuristic’:
../src/computer-reversi.vala:528:30: error: passing argument 1 of ‘_vala_array_dup3’ from incompatible pointer type [-Wincompatible-pointer-types]
528 | heuristic = heuristic_8;
| ^~~~~~~
| |
| const gint16 (*)[8] {aka const short int (*)[8]}
computer-reversi.c:3677:27: note: expected ‘gint16 *’ {aka ‘short int *’} but argument is of type ‘const gint16 (*)[8]’ {aka ‘const short int (*)[8]’}
[2/11] Compiling C object src/iagno.p/meson-generated_computer-reversi.c.o
FAILED: src/iagno.p/meson-generated_computer-reversi.c.o
/usr/bin/gcc -Isrc/iagno.p -Isrc -I../src -Idata -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 '-DGETTEXT_PACKAGE="iagno"' -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 -include config.h -MD -MQ src/iagno.p/meson-generated_computer-reversi.c.o -MF src/iagno.p/meson-generated_computer-reversi.c.o.d -o src/iagno.p/meson-generated_computer-reversi.c.o -c src/iagno.p/computer-reversi.c
../src/computer-reversi.vala: In function ‘computer_reverse_hard_init_heuristic’:
../src/computer-reversi.vala:249:30: error: passing argument 1 of ‘_vala_array_dup4’ from incompatible pointer type [-Wincompatible-pointer-types]
249 | _heuristic = heuristic_8;
| ^~~~~~~~
| |
| const gint16 (*)[8] {aka const short int (*)[8]}
computer-reversi.c:1617:27: note: expected ‘gint16 *’ {aka ‘short int *’} but argument is of type ‘const gint16 (*)[8]’ {aka ‘const short int (*)[8]’}
../src/computer-reversi.vala: In function ‘computer_reversi_hard_init_heuristic’:
../src/computer-reversi.vala:528:30: error: passing argument 1 of ‘_vala_array_dup5’ from incompatible pointer type [-Wincompatible-pointer-types]
528 | heuristic = heuristic_8;
| ^~~~~~~
| |
| const gint16 (*)[8] {aka const short int (*)[8]}
computer-reversi.c:3677:27: note: expected ‘gint16 *’ {aka ‘short int *’} but argument is of type ‘const gint16 (*)[8]’ {aka ‘const short int (*)[8]’}
[3/11] Compiling C object src/iagno-perfs-tests-generator.p/meson-generated_computer-reversi.c.o
FAILED: src/iagno-perfs-tests-generator.p/meson-generated_computer-reversi.c.o
/usr/bin/gcc -Isrc/iagno-perfs-tests-generator.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -w '-DGETTEXT_PACKAGE="iagno"' -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 -include config.h -MD -MQ src/iagno-perfs-tests-generator.p/meson-generated_computer-reversi.c.o -MF src/iagno-perfs-tests-generator.p/meson-generated_computer-reversi.c.o.d -o src/iagno-perfs-tests-generator.p/meson-generated_computer-reversi.c.o -c src/iagno-perfs-tests-generator.p/computer-reversi.c
../src/computer-reversi.vala: In function ‘computer_reverse_hard_init_heuristic’:
../src/computer-reversi.vala:249:30: error: passing argument 1 of ‘_vala_array_dup2’ from incompatible pointer type [-Wincompatible-pointer-types]
249 | _heuristic = heuristic_8;
| ^~~~~~~~
| |
| const gint16 (*)[8] {aka const short int (*)[8]}
computer-reversi.c:1617:27: note: expected ‘gint16 *’ {aka ‘short int *’} but argument is of type ‘const gint16 (*)[8]’ {aka ‘const short int (*)[8]’}
../src/computer-reversi.vala: In function ‘computer_reversi_hard_init_heuristic’:
../src/computer-reversi.vala:528:30: error: passing argument 1 of ‘_vala_array_dup3’ from incompatible pointer type [-Wincompatible-pointer-types]
528 | heuristic = heuristic_8;
| ^~~~~~~
| |
| const gint16 (*)[8] {aka const short int (*)[8]}
computer-reversi.c:3677:27: note: expected ‘gint16 *’ {aka ‘short int *’} but argument is of type ‘const gint16 (*)[8]’ {aka ‘const short int (*)[8]’}
[4/11] Compiling C object src/iagno.p/meson-generated_adaptative-window.c.o
FAILED: src/iagno.p/meson-generated_adaptative-window.c.o
/usr/bin/gcc -Isrc/iagno.p -Isrc -I../src -Idata -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 '-DGETTEXT_PACKAGE="iagno"' -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 -include config.h -MD -MQ src/iagno.p/meson-generated_adaptative-window.c.o -MF src/iagno.p/meson-generated_adaptative-window.c.o.d -o src/iagno.p/meson-generated_adaptative-window.c.o -c src/iagno.p/adaptative-window.c
../src/adaptative-window.vala: In function ‘adaptative_window_change_window_size’:
../src/adaptative-window.vala:323:26: error: passing argument 2 of ‘g_list_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
323 | adaptative_children.@foreach ((adaptative_child) => adaptative_child.set_window_size (new_window_size));
| ^~~~~~~~~~~~~~~~~
| |
| 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/iagno.p/adaptative-window.c:21:
/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,
| ~~~~~~~~~~~~~~~~~~^~~~
[5/11] Compiling C object src/iagno.p/meson-generated_base-window.c.o
FAILED: src/iagno.p/meson-generated_base-window.c.o
/usr/bin/gcc -Isrc/iagno.p -Isrc -I../src -Idata -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 '-DGETTEXT_PACKAGE="iagno"' -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 -include config.h -MD -MQ src/iagno.p/meson-generated_base-window.c.o -MF src/iagno.p/meson-generated_base-window.c.o.d -o src/iagno.p/meson-generated_base-window.c.o -c src/iagno.p/base-window.c
../src/base-window.vala: In function ‘base_window_create_about_dialog’:
../src/base-window.vala:474:42: error: passing argument 2 of ‘gtk_about_dialog_set_artists’ from incompatible pointer type [-Wincompatible-pointer-types]
474 | if (artists.length > 0) about_dialog.set_artists (artists);
| ^~~~~~~
| |
| gchar ** {aka char **}
In file included from /usr/include/gtk-3.0/gtk/gtk.h:31,
from src/iagno.p/base-window.c:22:
/usr/include/gtk-3.0/gtk/gtkaboutdialog.h:198:82: note: expected ‘const gchar **’ {aka ‘const char **’} but argument is of type ‘gchar **’ {aka ‘char **’}
198 | const gchar **artists);
| ~~~~~~~~~~~~~~~~~^~~~~~~
../src/base-window.vala:475:42: error: passing argument 2 of ‘gtk_about_dialog_set_authors’ from incompatible pointer type [-Wincompatible-pointer-types]
475 | if (authors.length > 0) about_dialog.set_authors (authors);
| ^~~~~~~
| |
| gchar ** {aka char **}
/usr/include/gtk-3.0/gtk/gtkaboutdialog.h:188:82: note: expected ‘const gchar **’ {aka ‘const char **’} but argument is of type ‘gchar **’ {aka ‘char **’}
188 | const gchar **authors);
| ~~~~~~~~~~~~~~~~~^~~~~~~
../src/base-window.vala:478:46: error: passing argument 2 of ‘gtk_about_dialog_set_documenters’ from incompatible pointer type [-Wincompatible-pointer-types]
478 | if (documenters.length > 0) about_dialog.set_documenters (documenters);
| ^~~~~~~
| |
| gchar ** {aka char **}
/usr/include/gtk-3.0/gtk/gtkaboutdialog.h:193:82: note: expected ‘const gchar **’ {aka ‘const char **’} but argument is of type ‘gchar **’ {aka ‘char **’}
193 | const gchar **documenters);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~
[6/11] Compiling C object src/iagno.p/meson-generated_iagno.c.o
FAILED: src/iagno.p/meson-generated_iagno.c.o
/usr/bin/gcc -Isrc/iagno.p -Isrc -I../src -Idata -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 '-DGETTEXT_PACKAGE="iagno"' -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 -include config.h -MD -MQ src/iagno.p/meson-generated_iagno.c.o -MF src/iagno.p/meson-generated_iagno.c.o.d -o src/iagno.p/meson-generated_iagno.c.o -c src/iagno.p/iagno.c
../src/iagno.vala: In function ‘iagno_real_startup’:
../src/iagno.vala:453:80: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
453 | set_accels_for_action ("ui.new-game", { "<Primary>n" });
| ^~~~~~~~
| |
| 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/iagno.p/iagno.c:26:
/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/iagno.vala:454:82: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
454 | set_accels_for_action ("ui.start-game", { "<Shift><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/iagno.vala:455:77: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
455 | set_accels_for_action ("app.quit", { "<Primary>q",
| ^~
| |
| 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/iagno.vala:457:76: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
457 | set_accels_for_action ("ui.undo", { "<Primary>z" });
| ^~~~~~~~
| |
| 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/iagno.vala:459:80: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
459 | set_accels_for_action ("base.escape", { "Escape" });
| ^~~~~~~~
| |
| 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/iagno.vala:460:90: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
460 | set_accels_for_action ("base.toggle-hamburger", { "F10" });
| ^
| |
| 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);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
[7/11] Compiling C object src/iagno.p/meson-generated_reversi-view.c.o
FAILED: src/iagno.p/meson-generated_reversi-view.c.o
/usr/bin/gcc -Isrc/iagno.p -Isrc -I../src -Idata -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 '-DGETTEXT_PACKAGE="iagno"' -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 -include config.h -MD -MQ src/iagno.p/meson-generated_reversi-view.c.o -MF src/iagno.p/meson-generated_reversi-view.c.o.d -o src/iagno.p/meson-generated_reversi-view.c.o -c src/iagno.p/reversi-view.c
../src/reversi-view.vala: In function ‘reversi_view_highlight_playable_tiles’:
../src/reversi-view.vala:1619:27: error: passing argument 2 of ‘g_slist_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
1619 | moves.@foreach ((move) => {
| ^~~~~~~~~
| |
| void (*)(const void *, void *)
In file included from /usr/include/glib-2.0/glib/gmain.h:28,
from /usr/include/glib-2.0/glib/giochannel.h:35,
from /usr/include/glib-2.0/glib.h:56,
from /usr/include/gtk-3.0/gdk/gdkconfig.h:8,
from /usr/include/gtk-3.0/gdk/gdk.h:30,
from /usr/include/gtk-3.0/gtk/gtk.h:30,
from src/iagno.p/reversi-view.c:26:
/usr/include/glib-2.0/glib/gslist.h:128:61: note: expected ‘GFunc’ {aka ‘void (*)(void *, void *)’} but argument is of type ‘void (*)(const void *, void *)’
128 | GFunc func,
| ~~~~~~~~~~~~~~~~~~^~~~
[8/11] Compiling C object src/iagno.p/meson-generated_overlayed-list.c.o
FAILED: src/iagno.p/meson-generated_overlayed-list.c.o
/usr/bin/gcc -Isrc/iagno.p -Isrc -I../src -Idata -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 '-DGETTEXT_PACKAGE="iagno"' -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 -include config.h -MD -MQ src/iagno.p/meson-generated_overlayed-list.c.o -MF src/iagno.p/meson-generated_overlayed-list.c.o.d -o src/iagno.p/meson-generated_overlayed-list.c.o -c src/iagno.p/overlayed-list.c
../src/overlayed-list.vala: In function ‘_overlayed_list_get_selection_state’:
../src/overlayed-list.vala:303:27: error: passing argument 2 of ‘g_list_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
303 | selected_rows.foreach ((row) => {
| ^~~~~~~~~~~~~~~~~~~
| |
| 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/gtk-3.0/gdk/gdkconfig.h:8,
from /usr/include/gtk-3.0/gdk/gdk.h:30,
from /usr/include/gtk-3.0/gtk/gtk.h:30,
from src/iagno.p/overlayed-list.c:21:
/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,
| ~~~~~~~~~~~~~~~~~~^~~~
../src/overlayed-list.vala: In function ‘overlayed_list_constructor’:
../src/overlayed-list.vala:39:57: error: passing argument 3 of ‘gtk_list_box_bind_model’ from incompatible pointer type [-Wincompatible-pointer-types]
39 | main_list_box.bind_model (main_list_store, create_rows);
| ^~~~~~~~
| |
| GtkWidget * (*)(GObject *, void *) {aka struct _GtkWidget * (*)(struct _GObject *, void *)}
In file included from /usr/include/gtk-3.0/gtk/gtk.h:140:
/usr/include/gtk-3.0/gtk/gtklistbox.h:312:89: note: expected ‘GtkListBoxCreateWidgetFunc’ {aka ‘struct _GtkWidget * (*)(void *, void *)’} but argument is of type ‘GtkWidget * (*)(GObject *, void *)’ {aka ‘struct _GtkWidget * (*)(struct _GObject *, void *)’}
312 | GtkListBoxCreateWidgetFunc create_widget_func,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
ninja: build stopped: cannot make progress due to previous errors.