Author: dim Date: Thu Dec 22 16:16:12 2011 New Revision: 228805 URL: http://svn.freebsd.org/changeset/base/228805
Log: 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 Modified: head/sys/modules/aic7xxx/ahc/ahc_pci/Makefile head/sys/modules/aic7xxx/ahd/Makefile Modified: head/sys/modules/aic7xxx/ahc/ahc_pci/Makefile ============================================================================== --- head/sys/modules/aic7xxx/ahc/ahc_pci/Makefile Thu Dec 22 16:01:10 2011 (r228804) +++ head/sys/modules/aic7xxx/ahc/ahc_pci/Makefile Thu Dec 22 16:16:12 2011 (r228805) @@ -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}} Modified: head/sys/modules/aic7xxx/ahd/Makefile ============================================================================== --- head/sys/modules/aic7xxx/ahd/Makefile Thu Dec 22 16:01:10 2011 (r228804) +++ head/sys/modules/aic7xxx/ahd/Makefile Thu Dec 22 16:16:12 2011 (r228805) @@ -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}} _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"