Module Name:    src
Committed By:   uebayasi
Date:           Sun Aug 30 14:06:17 UTC 2015

Modified Files:
        src/sys/arch/hpcmips/conf: LCARD NULLCONF
        src/sys/conf: Makefile.kern.inc

Log Message:
A makeoptions `DEFWARNINGS', forcibly disabling all ${CC} warnings, is only
used by hpcmips's NULLCONF, which doesn't even build for other causes.

If some source doen't build and needs a workaround, that should be deal with
by modifying per-file ${CC} options (e.g. COPTS.foo.c+=-fno-xxx).  Let's not
use DEFWARNINGS any longer.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/hpcmips/conf/LCARD
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/hpcmips/conf/NULLCONF
cvs rdiff -u -r1.214 -r1.215 src/sys/conf/Makefile.kern.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/hpcmips/conf/LCARD
diff -u src/sys/arch/hpcmips/conf/LCARD:1.16 src/sys/arch/hpcmips/conf/LCARD:1.17
--- src/sys/arch/hpcmips/conf/LCARD:1.16	Fri Aug 21 01:52:08 2015
+++ src/sys/arch/hpcmips/conf/LCARD	Sun Aug 30 14:06:17 2015
@@ -1,5 +1,5 @@
 #
-# 	$NetBSD: LCARD,v 1.16 2015/08/21 01:52:08 uebayasi Exp $
+# 	$NetBSD: LCARD,v 1.17 2015/08/30 14:06:17 uebayasi Exp $
 #
 include		"arch/hpcmips/conf/std.lcard"
 
@@ -30,7 +30,6 @@ pseudo-device	ksyms
 options 	DUMP_GIU_LEVEL2_INTR	# Debugging use
 #options 	DEBUG_FIND_PCIC		# Debugging use XXX harmful don't define until read source.
 #options 	DEBUG_FIND_PCIC_I82365SL_ONLY
-#makeoptions	DEFWARNINGS=no	# override DEFWARNINGS?=yes
 
 file-system 	FFS		# fast filesystem with user and group quotas
 options 	FFS_NO_SNAPSHOT	# No FFS snapshot support

Index: src/sys/arch/hpcmips/conf/NULLCONF
diff -u src/sys/arch/hpcmips/conf/NULLCONF:1.23 src/sys/arch/hpcmips/conf/NULLCONF:1.24
--- src/sys/arch/hpcmips/conf/NULLCONF:1.23	Fri Aug 21 01:52:08 2015
+++ src/sys/arch/hpcmips/conf/NULLCONF	Sun Aug 30 14:06:17 2015
@@ -1,5 +1,5 @@
 #
-# 	$NetBSD: NULLCONF,v 1.23 2015/08/21 01:52:08 uebayasi Exp $
+# 	$NetBSD: NULLCONF,v 1.24 2015/08/30 14:06:17 uebayasi Exp $
 #
 include		"arch/hpcmips/conf/std.hpcmips"
 
@@ -21,7 +21,6 @@ options 	WINCE_DEFAULT_SETTING	# Debuggi
 options 	DUMP_GIU_LEVEL2_INTR	# Debugging use
 options 	DEBUG_FIND_PCIC		# Debugging use XXX harmful don't define until read source.
 #options 	DEBUG_FIND_PCIC_I82365SL_ONLY
-makeoptions	DEFWARNINGS="no"	# override DEFWARNINGS?=yes
 
 file-system 	FFS		# fast filesystem with user and group quotas
 options 	FFS_NO_SNAPSHOT	# No FFS snapshot support

Index: src/sys/conf/Makefile.kern.inc
diff -u src/sys/conf/Makefile.kern.inc:1.214 src/sys/conf/Makefile.kern.inc:1.215
--- src/sys/conf/Makefile.kern.inc:1.214	Sun Aug 30 07:33:53 2015
+++ src/sys/conf/Makefile.kern.inc	Sun Aug 30 14:06:17 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.kern.inc,v 1.214 2015/08/30 07:33:53 uebayasi Exp $
+#	$NetBSD: Makefile.kern.inc,v 1.215 2015/08/30 14:06:17 uebayasi Exp $
 #
 # This file contains common `MI' targets and definitions and it is included
 # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -67,8 +67,6 @@ CPPFLAGS+=	-std=gnu99
 DEFCOPTS?=	-O2
 COPTS?=		${DEFCOPTS}
 DBG=		# might contain unwanted -Ofoo
-DEFWARNINGS?=	yes
-.if (${DEFWARNINGS} == "yes")
 CWARNFLAGS+=	-Wall -Wno-main -Wno-format-zero-length -Wpointer-arith
 CWARNFLAGS+=	-Wmissing-prototypes -Wstrict-prototypes
 CWARNFLAGS+=	-Wold-style-definition
@@ -87,7 +85,6 @@ CWARNFLAGS+=	-Wold-style-definition
 # Add -Wno-sign-compare.  -Wsign-compare is included in -Wall as of GCC 3.3,
 # but our sources aren't up for it yet.
 CWARNFLAGS+=	-Wno-sign-compare
-.endif
 
 CWARNFLAGS.clang+=	-Wno-unknown-pragmas -Wno-conversion \
 			-Wno-self-assign

Reply via email to