Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk PR/51831: Don't suppress warnings coming from syste...
details: https://anonhg.NetBSD.org/src/rev/ec7380c0599c
branches: trunk
changeset: 350475:ec7380c0599c
user: christos <christos%NetBSD.org@localhost>
date: Thu Jan 12 16:47:18 2017 +0000
description:
PR/51831: Don't suppress warnings coming from system header macro expansions.
diffstat:
share/mk/bsd.sys.mk | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 844b55dbe8c9 -r ec7380c0599c share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk Thu Jan 12 16:23:46 2017 +0000
+++ b/share/mk/bsd.sys.mk Thu Jan 12 16:47:18 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.sys.mk,v 1.264 2017/01/10 17:16:19 maya Exp $
+# $NetBSD: bsd.sys.mk,v 1.265 2017/01/12 16:47:18 christos Exp $
#
# Build definitions used for NetBSD source tree builds.
@@ -53,6 +53,10 @@
# differently in traditional and ansi environments' which is the warning
# we wanted, and now we don't get anymore.
CFLAGS+= -Wno-sign-compare
+# Don't suppress warnings coming from constructs in system headers.
+# Our system headers should be clean and we want to warn about things like:
+# isdigit((char)1)
+CFLAGS+= -Wsystem-headers
CFLAGS+= ${${ACTIVE_CC} == "gcc" :? -Wno-traditional :}
.if !defined(NOGCCERROR)
# Set assembler warnings to be fatal
Home |
Main Index |
Thread Index |
Old Index