Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/conf Restrict -Wno-array-bounds to tulip.c with gcc.
details: https://anonhg.NetBSD.org/src/rev/4397f37d2c0a
branches: trunk
changeset: 768141:4397f37d2c0a
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Aug 09 13:02:53 2011 +0000
description:
Restrict -Wno-array-bounds to tulip.c with gcc.
diffstat:
sys/conf/Makefile.kern.inc | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a043211b0759 -r 4397f37d2c0a sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc Tue Aug 09 13:02:11 2011 +0000
+++ b/sys/conf/Makefile.kern.inc Tue Aug 09 13:02:53 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.kern.inc,v 1.143 2011/07/28 13:42:16 uebayasi Exp $
+# $NetBSD: Makefile.kern.inc,v 1.144 2011/08/09 13:02:53 joerg Exp $
#
# This file contains common `MI' targets and definitions and it is included
# at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -81,7 +81,7 @@
.endif
CWARNFLAGS.clang+= -Wno-unknown-pragmas -Wno-conversion \
- -Wno-self-assign -Wno-array-bounds
+ -Wno-self-assign
CFLAGS+= -ffreestanding -fno-zero-initialized-in-bss
CFLAGS+= ${DEBUG} ${COPTS}
@@ -518,7 +518,7 @@
# XXX ugly ugly to fix
.if defined(HAVE_GCC) && ${HAVE_GCC} == 45
-CWARNFLAGS.tulip.c+= -Wno-array-bounds
+CWARNFLAGS.tulip.c+= ${${ACTIVE_CC} == "gcc":?-Wno-array-bounds:}
CWARNFLAGS.radeonfb.c+= -Wno-cast-qual
CWARNFLAGS.dbcool.c+= -Wno-cast-qual
CWARNFLAGS.adb_kbd.c+= -Wno-cast-qual
Home |
Main Index |
Thread Index |
Old Index