gcc-15.0.0_pre20241117 default to using -std=gnu23 (stricter) Reproducible: Always Steps to Reproduce: emerge =gcc-15.0.0_pre20241117 emerge =dev-libs/ffcall-2.4-r1 Actual Results: l_list.h:633:1: warning: ‘nodiscard’ attribute ignored [-Wattributes] 633 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD int | ^~~~~~~~~~~~~~ gl_list.h:633:40: error: expected identifier or ‘(’ before ‘int’ 633 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD int | ^~~ gl_list.h:688:1: warning: ‘nodiscard’ attribute ignored [-Wattributes] 688 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t | ^~~~~~~~~~~~~~ gl_list.h:688:40: error: expected identifier or ‘(’ before ‘gl_list_node_t’ 688 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t | ^~~~~~~~~~~~~~ gl_list.h:695:1: warning: ‘nodiscard’ attribute ignored [-Wattributes] 695 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t | ^~~~~~~~~~~~~~ gl_list.h:695:40: error: expected identifier or ‘(’ before ‘gl_list_node_t’ 695 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t | ^~~~~~~~~~~~~~ gl_list.h:701:1: warning: ‘nodiscard’ attribute ignored [-Wattributes] 701 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t | ^~~~~~~~~~~~~~ gl_list.h:701:40: error: expected identifier or ‘(’ before ‘gl_list_node_t’ 701 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t | ^~~~~~~~~~~~~~ gl_list.h:755:1: warning: ‘nodiscard’ attribute ignored [-Wattributes] 755 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t | ^~~~~~~~~~~~~~ gl_list.h:755:40: error: expected identifier or ‘(’ before ‘gl_list_node_t’ 755 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t | ^~~~~~~~~~~~~~ gl_list.h:762:1: warning: ‘nodiscard’ attribute ignored [-Wattributes] 762 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t | ^~~~~~~~~~~~~~ gl_list.h:762:40: error: expected identifier or ‘(’ before ‘gl_list_node_t’ 762 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t | ^~~~~~~~~~~~~~ gl_list.h:769:1: warning: ‘nodiscard’ attribute ignored [-Wattributes] 769 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t | ^~~~~~~~~~~~~~ gl_list.h:769:40: error: expected identifier or ‘(’ before ‘gl_list_node_t’ 769 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t | ^~~~~~~~~~~~~~ gl_list.h:776:1: warning: ‘nodiscard’ attribute ignored [-Wattributes] 776 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t | ^~~~~~~~~~~~~~ gl_list.h:776:40: error: expected identifier or ‘(’ before ‘gl_list_node_t’ 776 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t | ^~~~~~~~~~~~~~ gl_list.h:783:1: warning: ‘nodiscard’ attribute ignored [-Wattributes] 783 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t | ^~~~~~~~~~~~~~ gl_list.h:783:40: error: expected identifier or ‘(’ before ‘gl_list_node_t’ 783 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t | ^~~~~~~~~~~~~~ gl_list.h:894:1: warning: ‘nodiscard’ attribute ignored [-Wattributes] 894 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t | ^~~~~~~~~~~~~~ gl_list.h:894:40: error: expected identifier or ‘(’ before ‘gl_list_node_t’ 894 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t | ^~~~~~~~~~~~~~ clean-temp-simple.c: In function ‘register_temporary_file’: clean-temp-simple.c:348:11: error: implicit declaration of function ‘gl_list_nx_add_first’; did you mean ‘gl_list_remove_first’? [-Wimplicit-function-declaration] 348 | if (gl_list_nx_add_first (file_cleanup_list, absolute_file_name_copy) | ^~~~~~~~~~~~~~~~~~~~ | gl_list_remove_first clean-temp-simple.c:349:11: warning: comparison between pointer and integer 349 | == NULL) | ^~ builds with -std=gnu17 also works with gcc:15.0.0_pre20241110
Created attachment 908959 [details] build failure log
Created attachment 908960 [details] emerge --info
Created attachment 908961 [details] build fail log
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8dc343529e52550ccca2eb5441cca6dace7a7042 commit 8dc343529e52550ccca2eb5441cca6dace7a7042 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-11-18 09:34:44 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-11-18 09:34:44 +0000 dev-libs/ffcall: add 2.5 I've dropped the slibtool patch (at least for now) because this release fixes building w/ C23 which is more important at the moment. Bug: https://bugs.gentoo.org/776976 Bug: https://bugs.gentoo.org/829663 Closes: https://bugs.gentoo.org/879795 Closes: https://bugs.gentoo.org/943743 Signed-off-by: Sam James <sam@gentoo.org> dev-libs/ffcall/Manifest | 1 + dev-libs/ffcall/ffcall-2.5.ebuild | 60 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+)