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.
This commit is contained in:
ru 2003-03-31 13:10:51 +00:00
parent c5376b3ca5
commit 874869c32c
2 changed files with 2 additions and 1 deletions

View File

@ -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} \

View File

@ -11,6 +11,7 @@
.if !defined(NO_WARNS)
. if defined(WARNS)
. if ${WARNS} > 0
CFLAGS += -Wsystem-headers
. if !defined(NO_WERROR)
CFLAGS += -Werror
. endif