git: 9ef73855542f - stable/13 - stand/zlib: Zlib still uses K&R function definitions

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 24 Jan 2023 22:13:07 UTC
The branch stable/13 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=9ef73855542f7523094892b6f8e0106c3ea0d97a

commit 9ef73855542f7523094892b6f8e0106c3ea0d97a
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-11-30 18:08:24 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-01-24 21:49:38 +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
    
    (cherry picked from commit 983a18021decd68fbcf5d14ccd60c3d66dac1c6a)
---
 stand/libsa/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stand/libsa/Makefile b/stand/libsa/Makefile
index 9fbc9cc91b14..580afa65ab85 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}