Module Name: src
Committed By: christos
Date: Thu Jan 12 16:47:18 UTC 2017
Modified Files:
src/share/mk: bsd.sys.mk
Log Message:
PR/51831: Don't suppress warnings coming from system header macro expansions.
To generate a diff of this commit:
cvs rdiff -u -r1.264 -r1.265 src/share/mk/bsd.sys.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/mk/bsd.sys.mk
diff -u src/share/mk/bsd.sys.mk:1.264 src/share/mk/bsd.sys.mk:1.265
--- src/share/mk/bsd.sys.mk:1.264 Tue Jan 10 12:16:19 2017
+++ src/share/mk/bsd.sys.mk Thu Jan 12 11:47:18 2017
@@ -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 @@ CFLAGS+= -Wall -Wstrict-prototypes -Wmis
# 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