gcc-15 now defaults to using -std=gnu23 (which is stricter) multiple: error: too many arguments to function number of arguments doesn't match prototype rror: prototype declaration Reproducible: Always Actual Results: 1snap.c: In function 't1_Phantom': t1snap.c:43:17: warning: old-style function definition [-Wold-style-definition] 43 | struct segment *t1_Phantom(obj) | ^~~~~~~~~~ In file included from t1snap.c:33: paths.h:117:35: error: too many arguments to function 't1_PathDelta' 117 | #define PathDelta(p,pt) t1_PathDelta(p,pt) | ^~~~~~~~~~~~ t1snap.c:51:16: note: in expansion of macro 'PathDelta' 51 | PathDelta(obj, &pt); | ^~~~~~~~~ paths.h:127:6: note: declared here 127 | void t1_PathDelta(); /* calculate the ending point of a path */ | ^~~~~~~~~~~~ paths.h:119:35: error: too many arguments to function 't1_PathSegment' 119 | #define PathSegment(t,x,y) t1_PathSegment(t,(fractpel)x,(fractpel)y) | ^~~~~~~~~~~~~~ t1snap.c:53:15: note: in expansion of macro 'PathSegment' 53 | return(PathSegment(MOVETYPE, pt.x, pt.y)); | ^~~~~~~~~~~ paths.h:128:17: note: declared here 128 | struct segment *t1_PathSegment(); /* produce a MOVE or LINE segment */ | ^~~~~~~~~~~~~~ t1snap.c: In function 't1_Snap': curves.c: In function 'BezierTerminationTest': t1snap.c:62:17: warning: old-style function definition [-Wold-style-definition] 62 | struct xobject *t1_Snap(p) | ^~~~~~~ paths.h:117:35: error: too many arguments to function 't1_PathDelta' 117 | #define PathDelta(p,pt) t1_PathDelta(p,pt) | ^~~~~~~~~~~~ (many many more lines) works with CFLAGS="${CFLAGS} -std=gnu17" also works with =gcc-15.0.0_pre20241110
Created attachment 909688 [details] emerge --info
Created attachment 909689 [details] build failure log
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=743cd76336b2c8d8602cfd14405097e21a321306 commit 743cd76336b2c8d8602cfd14405097e21a321306 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-11-24 23:20:11 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-11-24 23:20:11 +0000 media-libs/t1lib: build w/ -std=gnu17 Nowhere to report upstream. Closes: https://bugs.gentoo.org/943882 Signed-off-by: Sam James <sam@gentoo.org> media-libs/t1lib/t1lib-5.1.2-r5.ebuild | 2 ++ 1 file changed, 2 insertions(+)