Date: Sun, 8 Jan 2023 11:02:21 GMT From: Dimitry Andric <dim@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 986c668ac668 - main - www/varnish7: fix build with clang 15 Message-ID: <202301081102.308B2L2K026652@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by dim (src committer): URL: https://cgit.FreeBSD.org/ports/commit/?id=986c668ac668d0719592669141a9e1324af6b28f commit 986c668ac668d0719592669141a9e1324af6b28f Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2023-01-07 15:26:06 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2023-01-08 11:01:11 +0000 www/varnish7: fix build with clang 15 During an exp-run for llvm 15 (see bug 265425), it turned out that www/varnish7 failed to build with clang 15: adler32.c:189:15: error: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype] uLong ZEXPORT adler32(adler, buf, len) ^ This is because varnish needlessly builds with -Werror. Turn it off, so the warnings can simply be ignored. PR: 268814 Approved by: dbaio (maintainer) MFH: 2023Q1 --- www/varnish7/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/varnish7/Makefile b/www/varnish7/Makefile index ee941e2f1848..3b565de8bef6 100644 --- a/www/varnish7/Makefile +++ b/www/varnish7/Makefile @@ -35,6 +35,8 @@ TEST_TARGET= check TEST_ARGS= TESTS_PARALLELISM=1 CONFIGURE_ARGS= --localstatedir=${PREFIX} --without-dot +# Needed for clang 15 (#268814) +CONFIGURE_ENV+= ax_cv_check_cflags___Werror=no .if defined(NO_INET6) || defined(WITHOUT_INET6) BAD_TESTS= r00832
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202301081102.308B2L2K026652>