On Sun, Jan 08, 2023 at 10:25:28PM +0100, Jeremie Courreges-Anglas wrote: > On Sun, Jan 08 2023, Jérémie Courrèges-Anglas <j...@wxcvbn.org> wrote: > > https://wxcvbn.org/~jca/build-failures/amd64-clang/2023-01-03/www/varnish.txt > [patch] > /usr/ports/pobj/varnish-7.2.1/varnish-7.2.1/lib/libvgz/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) > ^
Pulling upstream's zlib update didn't help, so disable this warning. Builds on amd64 with jca's clang 15 sets. Feedback? OK? Index: Makefile =================================================================== RCS file: /cvs/ports/www/varnish/Makefile,v retrieving revision 1.75 diff -u -p -r1.75 Makefile --- Makefile 6 Dec 2022 09:37:41 -0000 1.75 +++ Makefile 11 Jan 2023 20:27:53 -0000 @@ -37,6 +37,9 @@ CONFIGURE_ARGS = --docdir=${PREFIX}/shar --mandir=${PREFIX}/man \ --localstatedir=${LOCALSTATEDIR} +# fix clang 15 build in bundled zlib, uLong ZEXPORT adler32(adler, buf, len) +CFLAGS += -Wno-deprecated-non-prototype + TEST_TARGET = check .ifdef DEBUG