Disable -Wconstant-conversion warnings for the aic7xxx module in a more

fine-grained way: only add the option for the specific .c files that
need them, like via sys/conf/files.

MFC after:	1 week
This commit is contained in:
Dimitry Andric 2011-12-22 16:16:12 +00:00
parent 268e76d86e
commit 40c56173c2
2 changed files with 6 additions and 2 deletions

View File

@ -12,6 +12,8 @@ SRCS+= device_if.h bus_if.h pci_if.h
SRCS+= opt_scsi.h opt_cam.h opt_aic7xxx.h
CFLAGS+= -I${.CURDIR}/../../../../dev/aic7xxx -I..
CWARNFLAGS+= ${NO_WCONSTANT_CONVERSION}
.include <bsd.kmod.mk>
CWARNFLAGS.ahc_pci.c= ${NO_WCONSTANT_CONVERSION}
CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}

View File

@ -32,8 +32,10 @@ SRCS= ${GENSRCS}
SRCS+= aic79xx.c aic79xx_osm.c aic79xx_pci.c ahd_pci.c
SRCS+= opt_scsi.h opt_aic79xx.h opt_cam.h opt_ddb.h
SRCS+= device_if.h bus_if.h pci_if.h
CWARNFLAGS+= ${NO_WCONSTANT_CONVERSION}
CLEANFILES= ${GENSRCS}
.include <bsd.kmod.mk>
CWARNFLAGS.ahd_pci.c= ${NO_WCONSTANT_CONVERSION}
CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}