45.0: 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/gnome-clocks.p/meson-generated_search-provider.c.o
FAILED: src/gnome-clocks.p/meson-generated_search-provider.c.o
/usr/bin/gcc -Isrc/gnome-clocks.p -Isrc -I../src -I. -I.. -Idata -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/libgweather-4.0 -I/usr/include/gnome-desktop-4.0 -I/usr/include/gsettings-desktop-schemas -I/usr/include/geocode-glib-2.0 -I/usr/include/libgeoclue-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/libadwaita-1 -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 -include config.h -DGWEATHER_I_KNOW_THIS_IS_UNSTABLE -DGNOME_DESKTOP_USE_UNSTABLE_API -MD -MQ src/gnome-clocks.p/meson-generated_search-provider.c.o -MF src/gnome-clocks.p/meson-generated_search-provider.c.o.d -o src/gnome-clocks.p/meson-generated_search-provider.c.o -c src/gnome-clocks.p/search-provider.c
../src/search-provider.vala: In function ‘clocks_search_provider_normalize_terms’:
../src/search-provider.vala:33:48: error: passing argument 1 of ‘_vala_array_dup1’ from incompatible pointer type [-Wincompatible-pointer-types]
33 | return normalized_terms.data;
| ^
| |
| void **
search-provider.c:446:27: note: expected ‘gchar **’ {aka ‘char **’} but argument is of type ‘void **’
../src/search-provider.vala:33:72: error: pointer type mismatch in conditional expression [-Wincompatible-pointer-types]
33 | return normalized_terms.data;
| ^
../src/search-provider.vala:33:30: note: first expression has type ‘gchar **’ {aka ‘char **’}
33 | return normalized_terms.data;
| ^~~~~~~~
../src/search-provider.vala:33:74: note: second expression has type ‘void **’
33 | return normalized_terms.data;
| ^
../src/search-provider.vala: In function ‘clocks_search_provider_search_locations_co’:
../src/search-provider.vala:103:39: error: passing argument 2 of ‘g_ptr_array_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
103 | matches.foreach ((location) => {
| ^~
| |
| void (*)(const void *, void *)
In file included from /usr/include/glib-2.0/glib.h:33,
from /usr/include/glib-2.0/gobject/gbinding.h:30,
from /usr/include/glib-2.0/glib-object.h:24,
from src/gnome-clocks.p/search-provider.c:22:
/usr/include/glib-2.0/glib/garray.h:254:62: note: expected ‘GFunc’ {aka ‘void (*)(void *, void *)’} but argument is of type ‘void (*)(const void *, void *)’
254 | GFunc func,
| ~~~~~~~~~~~~~~~~~~^~~~
../src/search-provider.vala: In function ‘clocks_search_provider_get_result_metas’:
../src/search-provider.vala:170:50: error: passing argument 1 of ‘_vala_array_dup3’ from incompatible pointer type [-Wincompatible-pointer-types]
170 | return result.data;
| ^
| |
| void **
search-provider.c:1851:32: note: expected ‘GHashTable **’ {aka ‘struct _GHashTable **’} but argument is of type ‘void **’
../src/search-provider.vala:170:76: error: pointer type mismatch in conditional expression [-Wincompatible-pointer-types]
170 | return result.data;
| ^
../src/search-provider.vala:170:32: note: first expression has type ‘GHashTable **’ {aka ‘struct _GHashTable **’}
170 | return result.data;
| ^
../src/search-provider.vala:170:78: note: second expression has type ‘void **’
170 | return result.data;
| ^
[2/11] Compiling C object src/gnome-clocks.p/meson-generated_widgets.c.o
FAILED: src/gnome-clocks.p/meson-generated_widgets.c.o
/usr/bin/gcc -Isrc/gnome-clocks.p -Isrc -I../src -I. -I.. -Idata -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/libgweather-4.0 -I/usr/include/gnome-desktop-4.0 -I/usr/include/gsettings-desktop-schemas -I/usr/include/geocode-glib-2.0 -I/usr/include/libgeoclue-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/libadwaita-1 -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 -include config.h -DGWEATHER_I_KNOW_THIS_IS_UNSTABLE -DGNOME_DESKTOP_USE_UNSTABLE_API -MD -MQ src/gnome-clocks.p/meson-generated_widgets.c.o -MF src/gnome-clocks.p/meson-generated_widgets.c.o.d -o src/gnome-clocks.p/meson-generated_widgets.c.o -c src/gnome-clocks.p/widgets.c
../src/widgets.vala: In function ‘clocks_content_store_g_list_model_interface_init’:
../src/widgets.vala:26:18: error: assignment to ‘void * (*)(GListModel *, guint)’ {aka ‘void * (*)(struct _GListModel *, unsigned int)’} from incompatible pointer type ‘GObject * (*)(GListModel *, guint)’ {aka ‘struct _GObject * (*)(struct _GListModel *, unsigned int)’} [-Wincompatible-pointer-types]
26 | public class ContentStore : GLib.Object, GLib.ListModel {
| ^
[3/11] Compiling C object src/gnome-clocks.p/meson-generated_world-location-dialog.c.o
FAILED: src/gnome-clocks.p/meson-generated_world-location-dialog.c.o
/usr/bin/gcc -Isrc/gnome-clocks.p -Isrc -I../src -I. -I.. -Idata -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/libgweather-4.0 -I/usr/include/gnome-desktop-4.0 -I/usr/include/gsettings-desktop-schemas -I/usr/include/geocode-glib-2.0 -I/usr/include/libgeoclue-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/libadwaita-1 -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 -include config.h -DGWEATHER_I_KNOW_THIS_IS_UNSTABLE -DGNOME_DESKTOP_USE_UNSTABLE_API -MD -MQ src/gnome-clocks.p/meson-generated_world-location-dialog.c.o -MF src/gnome-clocks.p/meson-generated_world-location-dialog.c.o.d -o src/gnome-clocks.p/meson-generated_world-location-dialog.c.o -c src/gnome-clocks.p/world-location-dialog.c
../src/world-location-dialog.vala: In function ‘clocks_world_location_dialog_construct’:
../src/world-location-dialog.vala:71:57: error: passing argument 3 of ‘gtk_list_box_bind_model’ from incompatible pointer type [-Wincompatible-pointer-types]
71 | listbox.bind_model (locations, (data) => {
| ^
| |
| GtkWidget * (*)(GObject *, void *) {aka struct _GtkWidget * (*)(struct _GObject *, void *)}
In file included from /usr/include/gtk-4.0/gtk/gtk.h:177,
from /usr/include/libadwaita-1/adwaita.h:9,
from src/gnome-clocks.p/world-location-dialog.c:25:
/usr/include/gtk-4.0/gtk/gtklistbox.h:267:89: note: expected ‘GtkListBoxCreateWidgetFunc’ {aka ‘struct _GtkWidget * (*)(void *, void *)’} but argument is of type ‘GtkWidget * (*)(GObject *, void *)’ {aka ‘struct _GtkWidget * (*)(struct _GObject *, void *)’}
267 | GtkListBoxCreateWidgetFunc create_widget_func,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
[4/11] Compiling C object src/gnome-clocks.p/meson-generated_world-face.c.o
FAILED: src/gnome-clocks.p/meson-generated_world-face.c.o
/usr/bin/gcc -Isrc/gnome-clocks.p -Isrc -I../src -I. -I.. -Idata -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/libgweather-4.0 -I/usr/include/gnome-desktop-4.0 -I/usr/include/gsettings-desktop-schemas -I/usr/include/geocode-glib-2.0 -I/usr/include/libgeoclue-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/libadwaita-1 -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 -include config.h -DGWEATHER_I_KNOW_THIS_IS_UNSTABLE -DGNOME_DESKTOP_USE_UNSTABLE_API -MD -MQ src/gnome-clocks.p/meson-generated_world-face.c.o -MF src/gnome-clocks.p/meson-generated_world-face.c.o.d -o src/gnome-clocks.p/meson-generated_world-face.c.o -c src/gnome-clocks.p/world-face.c
../src/world-face.vala: In function ‘clocks_world_face_constructor’:
../src/world-face.vala:60:57: error: passing argument 3 of ‘gtk_list_box_bind_model’ from incompatible pointer type [-Wincompatible-pointer-types]
60 | listbox.bind_model (locations, (item) => {
| ^
| |
| GtkWidget * (*)(GObject *, void *) {aka struct _GtkWidget * (*)(struct _GObject *, void *)}
In file included from /usr/include/gtk-4.0/gtk/gtk.h:177,
from /usr/include/libadwaita-1/adwaita.h:9,
from src/gnome-clocks.p/world-face.c:22:
/usr/include/gtk-4.0/gtk/gtklistbox.h:267:89: note: expected ‘GtkListBoxCreateWidgetFunc’ {aka ‘struct _GtkWidget * (*)(void *, void *)’} but argument is of type ‘GtkWidget * (*)(GObject *, void *)’ {aka ‘struct _GtkWidget * (*)(struct _GObject *, void *)’}
267 | GtkListBoxCreateWidgetFunc create_widget_func,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
[5/11] Compiling C object src/gnome-clocks.p/meson-generated_application.c.o
FAILED: src/gnome-clocks.p/meson-generated_application.c.o
/usr/bin/gcc -Isrc/gnome-clocks.p -Isrc -I../src -I. -I.. -Idata -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/libgweather-4.0 -I/usr/include/gnome-desktop-4.0 -I/usr/include/gsettings-desktop-schemas -I/usr/include/geocode-glib-2.0 -I/usr/include/libgeoclue-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/libadwaita-1 -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 -include config.h -DGWEATHER_I_KNOW_THIS_IS_UNSTABLE -DGNOME_DESKTOP_USE_UNSTABLE_API -MD -MQ src/gnome-clocks.p/meson-generated_application.c.o -MF src/gnome-clocks.p/meson-generated_application.c.o.d -o src/gnome-clocks.p/meson-generated_application.c.o -c src/gnome-clocks.p/application.c
../src/application.vala: In function ‘clocks_application_real_startup’:
../src/application.vala:109:76: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
109 | set_accels_for_action ("win.new", { "<Control>n" });
| ^
| |
| 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 /usr/include/libadwaita-1/adwaita.h:9,
from src/gnome-clocks.p/application.c:22:
/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/application.vala:110:90: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
110 | set_accels_for_action ("win.show-primary-menu", { "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/application.vala:111:77: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
111 | set_accels_for_action ("win.help", { "F1" });
| ^
| |
| 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/application.vala:112:77: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
112 | set_accels_for_action ("app.quit", { "<Control>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/application.vala:113:90: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
113 | set_accels_for_action ("win.navigate-backward", { "<Control><Alt>Page_Up" });
| ^
| |
| 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/application.vala:114:89: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
114 | set_accels_for_action ("win.navigate-forward", { "<Control><Alt>Page_Down" });
| ^
| |
| 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);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
[6/11] Compiling C object src/gnome-clocks.p/meson-generated_alarm-setup-dialog.c.o
FAILED: src/gnome-clocks.p/meson-generated_alarm-setup-dialog.c.o
/usr/bin/gcc -Isrc/gnome-clocks.p -Isrc -I../src -I. -I.. -Idata -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/libgweather-4.0 -I/usr/include/gnome-desktop-4.0 -I/usr/include/gsettings-desktop-schemas -I/usr/include/geocode-glib-2.0 -I/usr/include/libgeoclue-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/libadwaita-1 -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 -include config.h -DGWEATHER_I_KNOW_THIS_IS_UNSTABLE -DGNOME_DESKTOP_USE_UNSTABLE_API -MD -MQ src/gnome-clocks.p/meson-generated_alarm-setup-dialog.c.o -MF src/gnome-clocks.p/meson-generated_alarm-setup-dialog.c.o.d -o src/gnome-clocks.p/meson-generated_alarm-setup-dialog.c.o -c src/gnome-clocks.p/alarm-setup-dialog.c
../src/alarm-setup-dialog.vala: In function ‘clocks_alarm_duration_model_g_list_model_interface_init’:
../src/alarm-setup-dialog.vala:37:18: error: assignment to ‘void * (*)(GListModel *, guint)’ {aka ‘void * (*)(struct _GListModel *, unsigned int)’} from incompatible pointer type ‘GObject * (*)(GListModel *, guint)’ {aka ‘struct _GObject * (*)(struct _GListModel *, unsigned int)’} [-Wincompatible-pointer-types]
37 | private class DurationModel : ListModel, Object {
| ^
../src/alarm-setup-dialog.vala: In function ‘clocks_alarm_setup_dialog_construct’:
../src/alarm-setup-dialog.vala:111:26: error: passing argument 1 of ‘gtk_expression_unref’ from incompatible pointer type [-Wincompatible-pointer-types]
111 | public SetupDialog (Gtk.Window parent, Item? alarm, ListModel all_alarms) {
| ^~~~~~~~~~
| |
| GtkCClosureExpression * {aka struct _GtkCClosureExpression *}
src/gnome-clocks.p/alarm-setup-dialog.c:142:91: note: in definition of macro ‘_gtk_expression_unref0’
142 | #define _gtk_expression_unref0(var) ((var == NULL) ? NULL : (var = (gtk_expression_unref (var), NULL)))
| ^~~
In file included from /usr/include/gtk-4.0/gtk/gtkboolfilter.h:26,
from /usr/include/gtk-4.0/gtk/gtk.h:53,
from /usr/include/libadwaita-1/adwaita.h:9,
from src/gnome-clocks.p/alarm-setup-dialog.c:29:
/usr/include/gtk-4.0/gtk/gtkexpression.h:51:98: note: expected ‘GtkExpression *’ {aka ‘struct _GtkExpression *’} but argument is of type ‘GtkCClosureExpression *’ {aka ‘struct _GtkCClosureExpression *’}
51 | void gtk_expression_unref (GtkExpression *self);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
../src/alarm-setup-dialog.vala: In function ‘_clocks_alarm_setup_dialog_spinbuttons_changed_gtk_spin_button_value_changed’:
../src/alarm-setup-dialog.vala:76:81: error: passing argument 2 of ‘clocks_alarm_setup_dialog_spinbuttons_changed’ from incompatible pointer type [-Wincompatible-pointer-types]
76 | private class SetupDialog : Adw.Window {
| ^
| |
| GtkSpinButton * {aka struct _GtkSpinButton *}
alarm-setup-dialog.c:1765:61: note: expected ‘GtkEditable *’ {aka ‘struct _GtkEditable *’} but argument is of type ‘GtkSpinButton *’ {aka ‘struct _GtkSpinButton *’}
[7/11] Compiling C object src/gnome-clocks.p/meson-generated_alarm-face.c.o
FAILED: src/gnome-clocks.p/meson-generated_alarm-face.c.o
/usr/bin/gcc -Isrc/gnome-clocks.p -Isrc -I../src -I. -I.. -Idata -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/libgweather-4.0 -I/usr/include/gnome-desktop-4.0 -I/usr/include/gsettings-desktop-schemas -I/usr/include/geocode-glib-2.0 -I/usr/include/libgeoclue-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/libadwaita-1 -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 -include config.h -DGWEATHER_I_KNOW_THIS_IS_UNSTABLE -DGNOME_DESKTOP_USE_UNSTABLE_API -MD -MQ src/gnome-clocks.p/meson-generated_alarm-face.c.o -MF src/gnome-clocks.p/meson-generated_alarm-face.c.o.d -o src/gnome-clocks.p/meson-generated_alarm-face.c.o -c src/gnome-clocks.p/alarm-face.c
../src/alarm-face.vala: In function ‘clocks_alarm_face_constructor’:
../src/alarm-face.vala:70:59: error: passing argument 3 of ‘gtk_list_box_bind_model’ from incompatible pointer type [-Wincompatible-pointer-types]
70 | listbox.bind_model (alarms, (item) => {
| ^
| |
| GtkWidget * (*)(GObject *, void *) {aka struct _GtkWidget * (*)(struct _GObject *, void *)}
In file included from /usr/include/gtk-4.0/gtk/gtk.h:177,
from /usr/include/libadwaita-1/adwaita.h:9,
from src/gnome-clocks.p/alarm-face.c:23:
/usr/include/gtk-4.0/gtk/gtklistbox.h:267:89: note: expected ‘GtkListBoxCreateWidgetFunc’ {aka ‘struct _GtkWidget * (*)(void *, void *)’} but argument is of type ‘GtkWidget * (*)(GObject *, void *)’ {aka ‘struct _GtkWidget * (*)(struct _GObject *, void *)’}
267 | GtkListBoxCreateWidgetFunc create_widget_func,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
[8/11] Compiling C object src/gnome-clocks.p/meson-generated_stopwatch-face.c.o
FAILED: src/gnome-clocks.p/meson-generated_stopwatch-face.c.o
/usr/bin/gcc -Isrc/gnome-clocks.p -Isrc -I../src -I. -I.. -Idata -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/libgweather-4.0 -I/usr/include/gnome-desktop-4.0 -I/usr/include/gsettings-desktop-schemas -I/usr/include/geocode-glib-2.0 -I/usr/include/libgeoclue-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/libadwaita-1 -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 -include config.h -DGWEATHER_I_KNOW_THIS_IS_UNSTABLE -DGNOME_DESKTOP_USE_UNSTABLE_API -MD -MQ src/gnome-clocks.p/meson-generated_stopwatch-face.c.o -MF src/gnome-clocks.p/meson-generated_stopwatch-face.c.o.d -o src/gnome-clocks.p/meson-generated_stopwatch-face.c.o -c src/gnome-clocks.p/stopwatch-face.c
../src/stopwatch-face.vala: In function ‘clocks_stopwatch_face_constructor’:
../src/stopwatch-face.vala:90:57: error: passing argument 3 of ‘gtk_list_box_bind_model’ from incompatible pointer type [-Wincompatible-pointer-types]
90 | laps_list.bind_model (laps, (lap) => {
| ^
| |
| GtkWidget * (*)(GObject *, void *) {aka struct _GtkWidget * (*)(struct _GObject *, void *)}
In file included from /usr/include/gtk-4.0/gtk/gtk.h:177,
from src/gnome-clocks.p/stopwatch-face.c:23:
/usr/include/gtk-4.0/gtk/gtklistbox.h:267:89: note: expected ‘GtkListBoxCreateWidgetFunc’ {aka ‘struct _GtkWidget * (*)(void *, void *)’} but argument is of type ‘GtkWidget * (*)(GObject *, void *)’ {aka ‘struct _GtkWidget * (*)(struct _GObject *, void *)’}
267 | GtkListBoxCreateWidgetFunc create_widget_func,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
[9/11] Compiling C object src/gnome-clocks.p/meson-generated_window.c.o
FAILED: src/gnome-clocks.p/meson-generated_window.c.o
/usr/bin/gcc -Isrc/gnome-clocks.p -Isrc -I../src -I. -I.. -Idata -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/libgweather-4.0 -I/usr/include/gnome-desktop-4.0 -I/usr/include/gsettings-desktop-schemas -I/usr/include/geocode-glib-2.0 -I/usr/include/libgeoclue-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/libadwaita-1 -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 -include config.h -DGWEATHER_I_KNOW_THIS_IS_UNSTABLE -DGNOME_DESKTOP_USE_UNSTABLE_API -MD -MQ src/gnome-clocks.p/meson-generated_window.c.o -MF src/gnome-clocks.p/meson-generated_window.c.o.d -o src/gnome-clocks.p/meson-generated_window.c.o -c src/gnome-clocks.p/window.c
../src/window.vala: In function ‘clocks_window_on_about_activate’:
../src/window.vala:291:29: error: passing argument 1 of ‘_vala_array_dup5’ from incompatible pointer type [-Wincompatible-pointer-types]
291 | var about = new Adw.AboutWindow () {
| ^~~~~~~~~~
| |
| const gchar ** {aka const char **}
window.c:1235:27: note: expected ‘gchar **’ {aka ‘char **’} but argument is of type ‘const gchar **’ {aka ‘const char **’}
../src/window.vala:291:43: error: passing argument 2 of ‘adw_about_window_set_developers’ from incompatible pointer type [-Wincompatible-pointer-types]
291 | var about = new Adw.AboutWindow () {
| ^~
| |
| gchar ** {aka char **}
In file included from /usr/include/libadwaita-1/adwaita.h:24,
from src/gnome-clocks.p/window.c:22:
/usr/include/libadwaita-1/adw-about-window.h:113:71: note: expected ‘const char **’ but argument is of type ‘gchar **’ {aka ‘char **’}
113 | const char **developers);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~
[10/11] Compiling C object src/gnome-clocks.p/meson-generated_timer-face.c.o
FAILED: src/gnome-clocks.p/meson-generated_timer-face.c.o
/usr/bin/gcc -Isrc/gnome-clocks.p -Isrc -I../src -I. -I.. -Idata -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/libgweather-4.0 -I/usr/include/gnome-desktop-4.0 -I/usr/include/gsettings-desktop-schemas -I/usr/include/geocode-glib-2.0 -I/usr/include/libgeoclue-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/libadwaita-1 -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 -include config.h -DGWEATHER_I_KNOW_THIS_IS_UNSTABLE -DGNOME_DESKTOP_USE_UNSTABLE_API -MD -MQ src/gnome-clocks.p/meson-generated_timer-face.c.o -MF src/gnome-clocks.p/meson-generated_timer-face.c.o.d -o src/gnome-clocks.p/meson-generated_timer-face.c.o -c src/gnome-clocks.p/timer-face.c
timer-face.c: In function ‘_clocks_timer_item_deserialize_clocks_content_store_deserialize_item_func’:
timer-face.c:588:9: error: assignment to ‘ClocksContentItem *’ {aka ‘struct _ClocksContentItem *’} from incompatible pointer type ‘ClocksTimerItem *’ {aka ‘struct _ClocksTimerItem *’} [-Wincompatible-pointer-types]
../src/timer-face.vala: In function ‘clocks_timer_face_constructor’:
../src/timer-face.vala:53:57: error: passing argument 3 of ‘gtk_list_box_bind_model’ from incompatible pointer type [-Wincompatible-pointer-types]
53 | timers_list.bind_model (timers, (timer) => {
| ^
| |
| GtkWidget * (*)(GObject *, void *) {aka struct _GtkWidget * (*)(struct _GObject *, void *)}
In file included from /usr/include/gtk-4.0/gtk/gtk.h:177,
from /usr/include/libadwaita-1/adwaita.h:9,
from src/gnome-clocks.p/timer-face.c:23:
/usr/include/gtk-4.0/gtk/gtklistbox.h:267:89: note: expected ‘GtkListBoxCreateWidgetFunc’ {aka ‘struct _GtkWidget * (*)(void *, void *)’} but argument is of type ‘GtkWidget * (*)(GObject *, void *)’ {aka ‘struct _GtkWidget * (*)(struct _GObject *, void *)’}
267 | GtkListBoxCreateWidgetFunc create_widget_func,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
ninja: build stopped: cannot make progress due to previous errors.