Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/conf apply some -Wno-foo to 3 files that are non-trivial...
details: https://anonhg.NetBSD.org/src/rev/3d55991db61d
branches: trunk
changeset: 766942:3d55991db61d
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Jul 04 13:00:19 2011 +0000
description:
apply some -Wno-foo to 3 files that are non-trivial to solve, for GCC 4.5.
diffstat:
sys/conf/Makefile.kern.inc | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r b99cc3972a1e -r 3d55991db61d sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc Mon Jul 04 12:54:24 2011 +0000
+++ b/sys/conf/Makefile.kern.inc Mon Jul 04 13:00:19 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.kern.inc,v 1.140 2011/06/20 06:52:38 mrg Exp $
+# $NetBSD: Makefile.kern.inc,v 1.141 2011/07/04 13:00:19 mrg Exp $
#
# This file contains common `MI' targets and definitions and it is included
# at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -510,12 +510,19 @@
uvm/uvm_pager.c dev/ic/aic7xxx.c dev/ic/aic79xx.c arch/xen/i386/gdt.c \
dev/ofw/ofw_subr.c
-. if defined(HAVE_GCC) || defined(HAVE_PCC)
+.if defined(HAVE_GCC) || defined(HAVE_PCC)
.for __varstack in ${VARSTACK}
COPTS.${__varstack:T} += -Wno-stack-protector
.endfor
.endif
+# XXX ugly ugly to fix
+.if defined(HAVE_GCC) && ${HAVE_GCC} == 45
+CWARNFLAGS.tulip.c+= -Wno-array-bounds
+CWARNFLAGS.radeonfb.c+= -Wno-cast-qual
+CWARNFLAGS.dbcool.c+= -Wno-cast-qual
+.endif
+
AFLAGS+= ${AOPTS.${.IMPSRC:T}}
CFLAGS+= ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}}
CPPFLAGS+= ${CPPFLAGS.${.IMPSRC:T}}
Home |
Main Index |
Thread Index |
Old Index