This is related but separate to Clang 16. Clang 15+ started warning on this but it's not fatal right now. -Werror=deprecated-non-prototype issues are forbidden in C23 (C2x) so at the latest, this will become a problem for us when compilers switch in ~2025/2026/2027 to C23 as default, but it might become a problem sooner if Clang decides to change.
These will affect GCC 15: https://inbox.sourceware.org/gcc-cvs/20241115234634.9D1633858CDA@sourceware.org/T/#u.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d931e94d9cc1babc010aa589662c0dcda119fdd5 commit d931e94d9cc1babc010aa589662c0dcda119fdd5 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-11-18 01:40:35 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-11-18 01:41:04 +0000 sys-devel/gcc: add 15.0.0_pre20241117 Bug: https://bugs.gentoo.org/880545 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/gcc/Manifest | 2 ++ sys-devel/gcc/gcc-15.0.0_pre20241117.ebuild | 53 +++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+)
I've written up some docs at https://wiki.gentoo.org/wiki/Modern_C_porting#Fixes_.28C23.29. Please ask if you get stuck (ideally on IRC in #gentoo-toolchain, but CCing on a bug is OK, just be aware I may miss it).