From 874869c32c9a77dca62c27f6f64b54dcd249948d Mon Sep 17 00:00:00 2001 From: ru Date: Mon, 31 Mar 2003 13:10:51 +0000 Subject: [PATCH] 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. --- Makefile.inc1 | 2 +- share/mk/bsd.sys.mk | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index 4687c6e13696..07b2f49a17c1 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -193,7 +193,7 @@ BMAKEENV= MAKEOBJDIRPREFIX=${WORLDTMP} \ BMAKE= ${BMAKEENV} ${MAKE} -f Makefile.inc1 \ BOOTSTRAPPING=${OSRELDATE} \ -DNOHTML -DNOINFO -DNOMAN -DNOPIC -DNOPROFILE -DNOSHARED \ - -DNO_CPU_CFLAGS -DNO_WERROR + -DNO_CPU_CFLAGS -DNO_WARNS # build-tool stage TMAKEENV= MAKEOBJDIRPREFIX=${OBJTREE} \ diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 82196730757f..0d55b1905e69 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