Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Expand the -Wno-macro-redefined usage to MKLIBCSANITIZER
details: https://anonhg.NetBSD.org/src/rev/4d7036a636a2
branches: trunk
changeset: 1007138:4d7036a636a2
user: kamil <kamil%NetBSD.org@localhost>
date: Sat Feb 08 00:11:18 2020 +0000
description:
Expand the -Wno-macro-redefined usage to MKLIBCSANITIZER
_REENTRANT can be redefined and this is considered as an error.
diffstat:
external/bsd/fetch/lib/Makefile | 4 ++--
external/gpl2/lvm2/lvm2tools.mk | 4 ++--
tests/lib/libc/net/Makefile | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diffs (53 lines):
diff -r e4819b5b3582 -r 4d7036a636a2 external/bsd/fetch/lib/Makefile
--- a/external/bsd/fetch/lib/Makefile Fri Feb 07 23:28:59 2020 +0000
+++ b/external/bsd/fetch/lib/Makefile Sat Feb 08 00:11:18 2020 +0000
@@ -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 @@
${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
diff -r e4819b5b3582 -r 4d7036a636a2 external/gpl2/lvm2/lvm2tools.mk
--- a/external/gpl2/lvm2/lvm2tools.mk Fri Feb 07 23:28:59 2020 +0000
+++ b/external/gpl2/lvm2/lvm2tools.mk Sat Feb 08 00:11:18 2020 +0000
@@ -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 @@
#
#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
diff -r e4819b5b3582 -r 4d7036a636a2 tests/lib/libc/net/Makefile
--- a/tests/lib/libc/net/Makefile Fri Feb 07 23:28:59 2020 +0000
+++ b/tests/lib/libc/net/Makefile Sat Feb 08 00:11:18 2020 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index