Module Name: src
Committed By: joerg
Date: Tue Jan 17 11:09:11 UTC 2017
Modified Files:
src/share/mk: bsd.sys.mk
Log Message:
Don't randomly break the build and restrict -Wsystem-headers to gcc.
To generate a diff of this commit:
cvs rdiff -u -r1.267 -r1.268 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.267 src/share/mk/bsd.sys.mk:1.268
--- src/share/mk/bsd.sys.mk:1.267 Fri Jan 13 14:34:58 2017
+++ src/share/mk/bsd.sys.mk Tue Jan 17 11:09:10 2017
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.sys.mk,v 1.267 2017/01/13 14:34:58 christos Exp $
+# $NetBSD: bsd.sys.mk,v 1.268 2017/01/17 11:09:10 joerg Exp $
#
# Build definitions used for NetBSD source tree builds.
@@ -56,7 +56,7 @@ 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" :? -Wsystem-headers :}
CFLAGS+= ${${ACTIVE_CC} == "gcc" :? -Wno-traditional :}
.if !defined(NOGCCERROR)
# Set assembler warnings to be fatal