$make CC=clang CXX=clang++ CFLAGS="-pipe -march=native -O2 -Werror=strict-prototypes -I/usr/include/luajit-2.1 -DCONFIG_SHAREDIR='\"/usr/share/imapfilter\"' -DCONFIG_SSL_CAFILE='\"/etc/ssl/cert.pem\"' -DCONFIG_SSL_CAPATH='\"/etc/ssl/certs\"' " CXXFLAGS="$(echo $CFLAGS)" ... clang -pipe -march=native -O2 -Werror=strict-prototypes -I/usr/include/luajit-2.1 -DCONFIG_SHAREDIR='"/usr/share/imapfilter"' -DCONFIG_SSL_CAFILE='"/etc/ssl/cert.pem"' -DCONFIG_SSL_CAPATH='"/etc/ssl/certs"' -c -o lua.o lua.c lua.c:29:10: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] start_lua() ^ void 1 error generated. make[1]: *** [<builtin>: lua.o] Error 1 Reproducible: Always
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bebe48a569c277bfa5b4835cababf62c3b7c9769 commit bebe48a569c277bfa5b4835cababf62c3b7c9769 Author: Holger Hoffstätte <holger@applied-asynchrony.com> AuthorDate: 2022-09-17 11:51:03 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-09-17 21:13:31 +0000 mail-filter/imapfilter: fix build with -Werror=strict-prototypes Closes: https://bugs.gentoo.org/870682 Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> Closes: https://github.com/gentoo/gentoo/pull/27304 Signed-off-by: Sam James <sam@gentoo.org> .../imapfilter/files/2.7.6-prototypes.patch | 30 ++++++++++++++++++++++ mail-filter/imapfilter/imapfilter-2.7.6.ebuild | 4 +++ 2 files changed, 34 insertions(+)