git: 010795fc824c - main - libz: Move NO_WDEPRECATED_NON_PROTOTYPE below include of bsd.lib.mk.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 19 Apr 2023 17:53:33 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=010795fc824c4a763d26a2137c30a61d501f8177 commit 010795fc824c4a763d26a2137c30a61d501f8177 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2023-04-19 17:53:02 +0000 Commit: John Baldwin <jhb@FreeBSD.org> 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}