Module Name: src
Committed By: joerg
Date: Tue Aug 9 13:02:53 UTC 2011
Modified Files:
src/sys/conf: Makefile.kern.inc
Log Message:
Restrict -Wno-array-bounds to tulip.c with gcc.
To generate a diff of this commit:
cvs rdiff -u -r1.143 -r1.144 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/conf/Makefile.kern.inc
diff -u src/sys/conf/Makefile.kern.inc:1.143 src/sys/conf/Makefile.kern.inc:1.144
--- src/sys/conf/Makefile.kern.inc:1.143 Thu Jul 28 13:42:16 2011
+++ src/sys/conf/Makefile.kern.inc Tue Aug 9 13:02:53 2011
@@ -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