git: 983a18021dec - main - stand/zlib: Zlib still uses K&R function definitions
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 30 Nov 2022 18:09:14 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=983a18021decd68fbcf5d14ccd60c3d66dac1c6a commit 983a18021decd68fbcf5d14ccd60c3d66dac1c6a Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-11-30 18:08:24 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2022-11-30 18:08:44 +0000 stand/zlib: Zlib still uses K&R function definitions So add ${NO_WDEPRECATED_NON_PROTOTYPE} to the CFLAGS of those files. This can be removed when we import a zlib that's free of this anachronism. Sponsored by: Netflix Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D37516 --- stand/libsa/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stand/libsa/Makefile b/stand/libsa/Makefile index 14b38298c3f0..4eccf0f9b132 100644 --- a/stand/libsa/Makefile +++ b/stand/libsa/Makefile @@ -96,7 +96,7 @@ SRCS+=${i} # decompression functionality from zlib .PATH: ${SRCTOP}/sys/contrib/zlib -ZLIB_CFLAGS=-DHAVE_MEMCPY -I${SRCTOP}/sys/contrib/zlib +ZLIB_CFLAGS=-DHAVE_MEMCPY -I${SRCTOP}/sys/contrib/zlib ${NO_WDEPRECATED_NON_PROTOTYPE} .for i in adler32.c crc32.c infback.c inffast.c inflate.c inftrees.c zutil.c CFLAGS.${i}+=${ZLIB_CFLAGS} SRCS+= ${i}