46.alpha: build fails with [-Wreturn-mismatch] errors
Looks like something is wrong and ..
Build fails with
[tkloczko@pers-jacek x86_64-redhat-linux-gnu]$ ninja -k 0
[1/23] Compiling C object src/core/libcontactscore.a.p/meson-generated_contacts-chunk.c.o
FAILED: src/core/libcontactscore.a.p/meson-generated_contacts-chunk.c.o
/usr/bin/gcc -Isrc/core/libcontactscore.a.p -Isrc/core -I../src/core -I. -I.. -I/usr/include/gee-0.8 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/evolution-data-server -I/usr/include/libxml2 -I/usr/include/libsoup-3.0 -I/usr/include/json-glib-1.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 -Wno-error=incompatible-pointer-types -Os -fPIC -pthread -include config.h -MD -MQ src/core/libcontactscore.a.p/meson-generated_contacts-chunk.c.o -MF src/core/libcontactscore.a.p/meson-generated_contacts-chunk.c.o.d -o src/core/libcontactscore.a.p/meson-generated_contacts-chunk.c.o -c src/core/libcontactscore.a.p/contacts-chunk.c
../src/core/contacts-chunk.vala: In function ‘contacts_chunk_save_to_persona’:
/usr/include/glib-2.0/glib/gmacros.h:925:17: error: ‘return’ with a value, in function returning void [-Wreturn-mismatch]
925 | #define FALSE (0)
| ^
src/core/libcontactscore.a.p/contacts-chunk.c:30:142: note: in definition of macro ‘_vala_return_val_if_fail’
30 | #define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
| ^~~
../src/core/contacts-chunk.vala:14:68: note: in expansion of macro ‘FALSE’
14 | public abstract class Contacts.Chunk : GLib.Object {
| ^
contacts-chunk.c:98:1: note: declared here
../src/core/contacts-chunk.vala: In function ‘contacts_chunk_save_to_persona_finish’:
/usr/include/glib-2.0/glib/gmacros.h:925:17: error: ‘return’ with a value, in function returning void [-Wreturn-mismatch]
925 | #define FALSE (0)
| ^
src/core/libcontactscore.a.p/contacts-chunk.c:30:142: note: in definition of macro ‘_vala_return_val_if_fail’
30 | #define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
| ^~~
../src/core/contacts-chunk.vala:14:68: note: in expansion of macro ‘FALSE’
14 | public abstract class Contacts.Chunk : GLib.Object {
| ^
contacts-chunk.c:122:1: note: declared here
[2/23] Compiling C object src/libcontacts.a.p/meson-generated_contacts-import-operation.c.o
FAILED: src/libcontacts.a.p/meson-generated_contacts-import-operation.c.o
/usr/bin/gcc -Isrc/libcontacts.a.p -Isrc -I../src -I. -I.. -Isrc/core -I../src/core -I/usr/include/gee-0.8 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/evolution-data-server -I/usr/include/libxml2 -I/usr/include/libsoup-3.0 -I/usr/include/json-glib-1.0 -I/usr/include/gio-unix-2.0 -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/libadwaita-1 -I/usr/include/goa-1.0 -I/usr/lib64/goa-1.0/include -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 -Wno-error=incompatible-pointer-types -Os -fPIC -mfpmath=sse -msse -msse2 -pthread -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -include config.h '-DLOCALEDIR="/usr/share/locale"' -MD -MQ src/libcontacts.a.p/meson-generated_contacts-import-operation.c.o -MF src/libcontacts.a.p/meson-generated_contacts-import-operation.c.o.d -o src/libcontacts.a.p/meson-generated_contacts-import-operation.c.o -c src/libcontacts.a.p/contacts-import-operation.c
In file included from /usr/include/glib-2.0/glib.h:64,
from /usr/include/gtk-4.0/gtk/css/gtkcss.h:29,
from /usr/include/gtk-4.0/gtk/gtk.h:29,
from src/contacts.h:6,
from src/libcontacts.a.p/contacts-import-operation.c:10:
../src/contacts-import-operation.vala: In function ‘contacts_import_operation_real__undo_co’:
/usr/include/glib-2.0/glib/gmessages.h:680:5: error: ‘return’ with no value, in function returning non-void [-Wreturn-mismatch]
680 | return; \
| ^~~~~~
../src/contacts-import-operation.vala:59:2: note: in expansion of macro ‘g_return_if_reached’
59 | return_if_reached ();
| ^ ~~~~~~~~~~~~~~~~
contacts-import-operation.c:445:1: note: declared here
[3/23] Compiling C object src/libcontacts.a.p/meson-generated_io_contacts-io-parse-operation.c.o
FAILED: src/libcontacts.a.p/meson-generated_io_contacts-io-parse-operation.c.o
/usr/bin/gcc -Isrc/libcontacts.a.p -Isrc -I../src -I. -I.. -Isrc/core -I../src/core -I/usr/include/gee-0.8 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/evolution-data-server -I/usr/include/libxml2 -I/usr/include/libsoup-3.0 -I/usr/include/json-glib-1.0 -I/usr/include/gio-unix-2.0 -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/libadwaita-1 -I/usr/include/goa-1.0 -I/usr/lib64/goa-1.0/include -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 -Wno-error=incompatible-pointer-types -Os -fPIC -mfpmath=sse -msse -msse2 -pthread -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -include config.h '-DLOCALEDIR="/usr/share/locale"' -MD -MQ src/libcontacts.a.p/meson-generated_io_contacts-io-parse-operation.c.o -MF src/libcontacts.a.p/meson-generated_io_contacts-io-parse-operation.c.o.d -o src/libcontacts.a.p/meson-generated_io_contacts-io-parse-operation.c.o -c src/libcontacts.a.p/io/contacts-io-parse-operation.c
In file included from /usr/include/glib-2.0/glib.h:64,
from /usr/include/gtk-4.0/gtk/css/gtkcss.h:29,
from /usr/include/gtk-4.0/gtk/gtk.h:29,
from src/contacts.h:6,
from src/libcontacts.a.p/io/contacts-io-parse-operation.c:10:
../src/io/contacts-io-parse-operation.vala: In function ‘contacts_io_parse_operation_real__undo_co’:
/usr/include/glib-2.0/glib/gmessages.h:680:5: error: ‘return’ with no value, in function returning non-void [-Wreturn-mismatch]
680 | return; \
| ^~~~~~
../src/io/contacts-io-parse-operation.vala:85:2: note: in expansion of macro ‘g_return_if_reached’
85 | return_if_reached ();
| ^ ~~~~~~~~~~~~~~~~
contacts-io-parse-operation.c:816:1: note: declared here
[4/23] Compiling C object src/gnome-contacts.p/meson-generated_contacts-contact-editor.c.o
FAILED: src/gnome-contacts.p/meson-generated_contacts-contact-editor.c.o
/usr/bin/gcc -Isrc/gnome-contacts.p -Isrc -I../src -I. -I.. -Isrc/core -I../src/core -Idata -I/usr/include/gee-0.8 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/evolution-data-server -I/usr/include/libxml2 -I/usr/include/libsoup-3.0 -I/usr/include/json-glib-1.0 -I/usr/include/gio-unix-2.0 -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/libadwaita-1 -I/usr/include/goa-1.0 -I/usr/lib64/goa-1.0/include -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 -Wno-error=incompatible-pointer-types -Os -mfpmath=sse -msse -msse2 -pthread -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -include config.h '-DLOCALEDIR="/usr/share/locale"' -MD -MQ src/gnome-contacts.p/meson-generated_contacts-contact-editor.c.o -MF src/gnome-contacts.p/meson-generated_contacts-contact-editor.c.o.d -o src/gnome-contacts.p/meson-generated_contacts-contact-editor.c.o -c src/gnome-contacts.p/contacts-contact-editor.c
In file included from /usr/include/glib-2.0/glib.h:64,
from /usr/include/gtk-4.0/gtk/css/gtkcss.h:29,
from /usr/include/gtk-4.0/gtk/gtk.h:29,
from src/gnome-contacts.p/contacts-contact-editor.c:12:
../src/contacts-contact-editor.vala: In function ‘contacts_persona_editor_constructor’:
/usr/include/glib-2.0/glib/gmessages.h:655:9: error: ‘return’ with no value, in function returning non-void [-Wreturn-mismatch]
655 | return; \
| ^~~~~~
../src/contacts-contact-editor.vala:129:2: note: in expansion of macro ‘g_return_if_fail’
129 | return_if_fail (persona_model.get_n_items () > 0);
| ^ ~~~~~~~~~~~~~
contacts-contact-editor.c:3273:1: note: declared here
ninja: build stopped: cannot make progress due to previous errors.