Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys A makeoptions `DEFWARNINGS', forcibly disabling all ${CC...



details:   https://anonhg.NetBSD.org/src/rev/4f020c5eb345
branches:  trunk
changeset: 340301:4f020c5eb345
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Sun Aug 30 14:06:17 2015 +0000

description:
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.

diffstat:

 sys/arch/hpcmips/conf/LCARD    |  3 +--
 sys/arch/hpcmips/conf/NULLCONF |  3 +--
 sys/conf/Makefile.kern.inc     |  5 +----
 3 files changed, 3 insertions(+), 8 deletions(-)

diffs (62 lines):

diff -r 29a3d6353609 -r 4f020c5eb345 sys/arch/hpcmips/conf/LCARD
--- a/sys/arch/hpcmips/conf/LCARD       Sun Aug 30 13:09:48 2015 +0000
+++ b/sys/arch/hpcmips/conf/LCARD       Sun Aug 30 14:06:17 2015 +0000
@@ -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 @@
 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
diff -r 29a3d6353609 -r 4f020c5eb345 sys/arch/hpcmips/conf/NULLCONF
--- a/sys/arch/hpcmips/conf/NULLCONF    Sun Aug 30 13:09:48 2015 +0000
+++ b/sys/arch/hpcmips/conf/NULLCONF    Sun Aug 30 14:06:17 2015 +0000
@@ -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        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
diff -r 29a3d6353609 -r 4f020c5eb345 sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc        Sun Aug 30 13:09:48 2015 +0000
+++ b/sys/conf/Makefile.kern.inc        Sun Aug 30 14:06:17 2015 +0000
@@ -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 @@
 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 @@
 # 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



Home | Main Index | Thread Index | Old Index