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/ee39406fbd7a
branches:  trunk
changeset: 820617:ee39406fbd7a
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 5aeb4b2f115b -r ee39406fbd7a 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