apply some -Wno-foo to 3 files that are non-trivial to solve, for GCC 4.5.
This commit is contained in:
parent
5fb2e37596
commit
fc8b9ddc0c
|
@ -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 @@ VARSTACK=kern/uipc_socket.c miscfs/genfs/genfs_vnops.c \
|
|||
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}}
|
||||
|
|
Loading…
Reference in New Issue