Summary: | gnome-extra/gnome-contacts-43.1: error: non-void function 'contacts_bin_chunk_real_get_dirty' should return a value (CLANG) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Anton Gubarkov <anton.gubarkov> |
Component: | Current packages | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 870412 | ||
Attachments: |
build log
build-log-using-gcc-14 |
Description
Anton Gubarkov
2023-02-16 15:14:08 UTC
Created attachment 851832 [details]
build log
GCC 14 is now unhappy about this: src/core/libcontactscore.a.p/contacts-chunk.c: In function ‘contacts_chunk_save_to_persona’: /usr/include/glib-2.0/glib/gmacros.h:924:17: error: ‘return’ with a value, in function returning void [-Wreturn-mismatch] 924 | #define FALSE (0) | ^ src/core/libcontactscore.a.p/contacts-chunk.c:41:142: note: in definition of macro ‘_vala_return_val_if_fail’ 41 | #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/libcontactscore.a.p/contacts-chunk.c:108:75: note: in expansion of macro ‘FALSE’ 108 | _vala_return_val_if_fail (_tmp1_ != NULL, "this.persona != null", FALSE); | ^~~~~ src/core/libcontactscore.a.p/contacts-chunk.c:99:1: note: declared here 99 | contacts_chunk_save_to_persona (ContactsChunk* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/core/libcontactscore.a.p/contacts-chunk.c: In function ‘contacts_chunk_save_to_persona_finish’: /usr/include/glib-2.0/glib/gmacros.h:924:17: error: ‘return’ with a value, in function returning void [-Wreturn-mismatch] 924 | #define FALSE (0) | ^ src/core/libcontactscore.a.p/contacts-chunk.c:41:142: note: in definition of macro ‘_vala_return_val_if_fail’ 41 | #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/libcontactscore.a.p/contacts-chunk.c:125:75: note: in expansion of macro ‘FALSE’ 125 | _vala_return_val_if_fail (_tmp1_ != NULL, "this.persona != null", FALSE); | ^~~~~ src/core/libcontactscore.a.p/contacts-chunk.c:116:1: note: declared here oh, vala again... Created attachment 885560 [details]
build-log-using-gcc-14
*** Bug 877065 has been marked as a duplicate of this bug. *** The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54947c0c828f769ed8f3bc191bf10e21bd7370f4 commit 54947c0c828f769ed8f3bc191bf10e21bd7370f4 Author: Mart Raudsepp <leio@gentoo.org> AuthorDate: 2024-03-03 20:25:06 +0000 Commit: Mart Raudsepp <leio@gentoo.org> CommitDate: 2024-03-03 20:54:29 +0000 gnome-extra/gnome-contacts: add 45.1, fix compile with clang17/gcc14 Closes: https://bugs.gentoo.org/894794 Signed-off-by: Mart Raudsepp <leio@gentoo.org> gnome-extra/gnome-contacts/Manifest | 1 + gnome-extra/gnome-contacts/files/45.1-clang.patch | 228 +++++++++++++++++++++ .../gnome-contacts/gnome-contacts-45.1.ebuild | 77 +++++++ 3 files changed, 306 insertions(+) |