Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk Don't randomly break the build and restrict -Wsyste...



details:   https://anonhg.NetBSD.org/src/rev/dae4c0e5097f
branches:  trunk
changeset: 350723:dae4c0e5097f
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Jan 17 11:09:10 2017 +0000

description:
Don't randomly break the build and restrict -Wsystem-headers to gcc.

diffstat:

 share/mk/bsd.sys.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 2c029bf44c9f -r dae4c0e5097f share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk       Tue Jan 17 11:08:50 2017 +0000
+++ b/share/mk/bsd.sys.mk       Tue Jan 17 11:09:10 2017 +0000
@@ -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 @@
 # 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



Home | Main Index | Thread Index | Old Index