The branch main has been updated by jhb:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=010795fc824c4a763d26a2137c30a61d501f8177

commit 010795fc824c4a763d26a2137c30a61d501f8177
Author:     John Baldwin <[email protected]>
AuthorDate: 2023-04-19 17:53:02 +0000
Commit:     John Baldwin <[email protected]>
CommitDate: 2023-04-19 17:53:02 +0000

    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 <bsd.lib.mk>
+
+CWARNFLAGS+=   ${NO_WDEPRECATED_NON_PROTOTYPE}

Reply via email to