Expand the -Wno-macro-redefined usage to MKLIBCSANITIZER

_REENTRANT can be redefined and this is considered as an error.
This commit is contained in:
kamil 2020-02-08 00:11:18 +00:00
parent e404e1832c
commit cc056601a4
3 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.15 2019/10/13 07:28:05 mrg Exp $
# $NetBSD: Makefile,v 1.16 2020/02/08 00:11:18 kamil Exp $
LIB= fetch
SRCS= fetch.c common.c ftp.c http.c file.c
@ -32,7 +32,7 @@ httperr.h: ${LIBFETCHDIR}/http.errors ${LIBFETCHDIR}/errlist.sh
${HOST_SH} ${LIBFETCHDIR}/errlist.sh http_errlist HTTP \
${LIBFETCHDIR}/http.errors > ${.TARGET}
.if ${MKSANITIZER:Uno} == "yes"
.if ${MKSANITIZER:Uno} == "yes" || ${MKLIBCSANITIZER:Uno} == "yes"
CFLAGS+= -Wno-macro-redefined # _REENTRANT redefined
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: lvm2tools.mk,v 1.5 2019/08/27 22:48:53 kamil Exp $
# $NetBSD: lvm2tools.mk,v 1.6 2020/02/08 00:11:18 kamil Exp $
.include <bsd.own.mk>
@ -25,6 +25,6 @@ CPPFLAGS+=-DDM_DEVICE_UID=0 -DDM_DEVICE_GID=5 -DDM_DEVICE_MODE=0640 \
#
#LVM2.liblvm= ${LVM2OBJDIR.liblvm}/liblvm.a
.if ${MKSANITIZER:Uno} == "yes"
.if ${MKSANITIZER:Uno} == "yes" || ${MKLIBCSANITIZER:Uno} == "yes"
CFLAGS+= -Wno-macro-redefined # _REENTRANT redefined in lib.h
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2019/08/27 22:48:53 kamil Exp $
# $NetBSD: Makefile,v 1.13 2020/02/08 00:11:18 kamil Exp $
.include <bsd.own.mk>
@ -41,7 +41,7 @@ LDADD.h_nsd_recurse+= -lpthread
CLEANFILES+= aton_ether_subr.c
.if ${MKSANITIZER:Uno} == "yes"
.if ${MKSANITIZER:Uno} == "yes" || ${MKLIBCSANITIZER:Uno} == "yes"
COPTS.h_nsd_recurse.c+= -Wno-macro-redefined # _REENTRANT redefined
.endif