gcc-15.0.0_pre20241117 default to using -std=gnu23 (stricter) Reproducible: Always Steps to Reproduce: emerge =gcc-15.0.0_pre20241117 emerge =dev-perl/Tk-804.36.0-r4 Actual Results: ClientWin.c:58:11: error: too many arguments to function ‘TryChildren’ 58 | inf = TryChildren(dpy, win, WM_STATE); | ^~~~~~~~~~~ ClientWin.c:33:15: note: declared here 33 | static Window TryChildren(); | ^~~~~~~~~~~ ClientWin.c: In function ‘TryChildren’: ClientWin.c:66:8: warning: old-style function definition [-Wold-style-definition] 66 | Window TryChildren (dpy, win, WM_STATE) | ^~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -c -I/usr/include/freetype2 -I.. -I/usr/include/freetype2 -I. -Ibitmaps -I/usr/include/freetype2 -march=native -O3 -flto=56 -mprefer-vector-width=512 -fno-vect-cost-model -pipe -fno-strict-aliasing -DNO_PERL_RAND_SEED -fwrapv -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=native -O3 -flto=56 -mprefer-vector-width=512 -fno-vect-cost-model -pipe -DVERSION=\"804.036\" -DXS_VERSION=\"804.036\" -fPIC "-I/usr/lib64/perl5/5.40/x86_64-linux/CORE" tixInputO.c ClientWin.c:94:15: error: too many arguments to function ‘TryChildren’ 94 | inf = TryChildren(dpy, children[i], WM_STATE); | ^~~~~~~~~~~ ClientWin.c:66:8: note: declared here 66 | Window TryChildren (dpy, win, WM_STATE) builds with -std=gnu17 also works with gcc:15.0.0_pre20241110
Created attachment 909551 [details] emerge --info
Created attachment 909552 [details] build failure log
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9dff0e51a93e1f40ea815f9ffd5823d8b48c540 commit f9dff0e51a93e1f40ea815f9ffd5823d8b48c540 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-11-24 23:27:18 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-11-24 23:27:18 +0000 dev-perl/Tk: build w/ -std=gnu17 dev-perl/Tk has various modern C issues already with lots of pending PRs upstream. Closes: https://bugs.gentoo.org/943847 Signed-off-by: Sam James <sam@gentoo.org> dev-perl/Tk/Tk-804.36.0-r4.ebuild | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)