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.
This commit is contained in:
uebayasi 2015-08-30 14:06:17 +00:00
parent ef8ca4bc6c
commit ce0411ffa7
3 changed files with 3 additions and 8 deletions

View File

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

View File

@ -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 # Debugging use
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

View File

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