From 010795fc824c4a763d26a2137c30a61d501f8177 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 19 Apr 2023 10:53:02 -0700 Subject: [PATCH] libz: Move NO_WDEPRECATED_NON_PROTOTYPE below include of bsd.lib.mk. Also add it to CWARNFLAGS rather than CFLAGS. --- lib/libz/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libz/Makefile b/lib/libz/Makefile index 4a6e3c91a828..abc490980deb 100644 --- a/lib/libz/Makefile +++ b/lib/libz/Makefile @@ -53,7 +53,6 @@ CFLAGS+= -DUNALIGNED_OK VERSION_DEF= ${.CURDIR}/Versions.def SYMBOL_MAPS= ${.CURDIR}/Symbol.map CFLAGS+= -DSYMBOL_VERSIONING -CFLAGS+= ${NO_WDEPRECATED_NON_PROTOTYPE} INCS= zconf.h zlib.h @@ -84,3 +83,5 @@ test: example minigzip PCFILES= zlib.pc .include + +CWARNFLAGS+= ${NO_WDEPRECATED_NON_PROTOTYPE}