summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.sys.mk
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2003-03-31 13:10:51 +0000
committerru <ru@FreeBSD.org>2003-03-31 13:10:51 +0000
commit874869c32c9a77dca62c27f6f64b54dcd249948d (patch)
tree9cc8fcc1d330aee54ecdc6030c4ea06826cce1b2 /share/mk/bsd.sys.mk
parentc5376b3ca5d22438663ed31f8f781516e42efea7 (diff)
downloadFreeBSD-src-874869c32c9a77dca62c27f6f64b54dcd249948d.zip
FreeBSD-src-874869c32c9a77dca62c27f6f64b54dcd249948d.tar.gz
Enable cpp(1) warnings in system headers. GCC is oriented on
glibc which is externally maintained, so GCC ships with these warnings turned off by default. This is also consistent with the src/contrib/gcc/c-lex.c,v 1.2 change.
Diffstat (limited to 'share/mk/bsd.sys.mk')
-rw-r--r--share/mk/bsd.sys.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index 8219673..0d55b19 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -11,6 +11,7 @@
.if !defined(NO_WARNS)
. if defined(WARNS)
. if ${WARNS} > 0
+CFLAGS += -Wsystem-headers
. if !defined(NO_WERROR)
CFLAGS += -Werror
. endif
OpenPOWER on IntegriCloud