diff options
author | dim <dim@FreeBSD.org> | 2011-12-22 16:16:12 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-12-22 16:16:12 +0000 |
commit | f89decd1c749953332b070db0d6202cbd757f7d8 (patch) | |
tree | 0d3f1d5a10add30a737fdd825c1ded814104a7b4 /sys/modules | |
parent | e77b9066f154d05cc6448b591eb86133a2f96fae (diff) | |
download | FreeBSD-src-f89decd1c749953332b070db0d6202cbd757f7d8.zip FreeBSD-src-f89decd1c749953332b070db0d6202cbd757f7d8.tar.gz |
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
Diffstat (limited to 'sys/modules')
-rw-r--r-- | sys/modules/aic7xxx/ahc/ahc_pci/Makefile | 4 | ||||
-rw-r--r-- | sys/modules/aic7xxx/ahd/Makefile | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/modules/aic7xxx/ahc/ahc_pci/Makefile b/sys/modules/aic7xxx/ahc/ahc_pci/Makefile index 37553d6..c6e8559 100644 --- a/sys/modules/aic7xxx/ahc/ahc_pci/Makefile +++ b/sys/modules/aic7xxx/ahc/ahc_pci/Makefile @@ -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}} diff --git a/sys/modules/aic7xxx/ahd/Makefile b/sys/modules/aic7xxx/ahd/Makefile index 19c13d2..77885c7 100644 --- a/sys/modules/aic7xxx/ahd/Makefile +++ b/sys/modules/aic7xxx/ahd/Makefile @@ -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}} |