Disable various warnings for the ath 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 23:40:52 +00:00
parent ead079638f
commit f15dabe59d

View File

@ -139,9 +139,11 @@ SRCS+= amrr.c
SRCS+= dfs_null.c
CFLAGS+= -I. -I${.CURDIR}/../../dev/ath -I${.CURDIR}/../../dev/ath/ath_hal
CWARNFLAGS+= ${NO_WSHIFT_COUNT_NEGATIVE} ${NO_WSHIFT_COUNT_OVERFLOW}
opt_ah.h:
echo '#define AH_SUPPORT_AR5416 1' > $@
.include <bsd.kmod.mk>
CWARNFLAGS.ah_regdomain.c= ${NO_WSHIFT_COUNT_NEGATIVE} ${NO_WSHIFT_COUNT_OVERFLOW}
CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}