Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Apr 2023 17:53:33 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 010795fc824c - main - libz: Move NO_WDEPRECATED_NON_PROTOTYPE below include of bsd.lib.mk.
Message-ID:  <202304191753.33JHrXNK037651@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304191753.33JHrXNK037651>