Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/conf Make the kernel makefiles pay attention to NOGCCERROR
details: https://anonhg.NetBSD.org/src/rev/c6662074ac8f
branches: trunk
changeset: 552741:c6662074ac8f
user: matt <matt%NetBSD.org@localhost>
date: Wed Oct 01 23:11:29 2003 +0000
description:
Make the kernel makefiles pay attention to NOGCCERROR
diffstat:
sys/conf/Makefile.kern.inc | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 9ca866424de9 -r c6662074ac8f sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc Wed Oct 01 23:08:32 2003 +0000
+++ b/sys/conf/Makefile.kern.inc Wed Oct 01 23:11:29 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.kern.inc,v 1.36 2003/08/18 00:15:41 mrg Exp $
+# $NetBSD: Makefile.kern.inc,v 1.37 2003/10/01 23:11:29 matt Exp $
#
# This file contains common `MI' targets and definitions and it is included
# at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -50,7 +50,10 @@
DBG= # might contain unwanted -Ofoo
DEFWARNINGS?= yes
.if (${DEFWARNINGS} == "yes")
-CWARNFLAGS+= -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith
+.if !defined(NOGCCERROR)
+CWARNFLAGS+= -Werror
+.endif
+CWARNFLAGS+= -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith
CWARNFLAGS+= -Wmissing-prototypes -Wstrict-prototypes
# Add -Wno-sign-compare. -Wsign-compare is included in -Wall as of GCC 3.3,
# but our sources aren't up for it yet.
Home |
Main Index |
Thread Index |
Old Index