Author: dim
Date: Thu Dec 22 23:40:52 2011
New Revision: 228818
URL: http://svn.freebsd.org/changeset/base/228818

Log:
  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

Modified:
  head/sys/modules/ath/Makefile

Modified: head/sys/modules/ath/Makefile
==============================================================================
--- head/sys/modules/ath/Makefile       Thu Dec 22 21:54:53 2011        
(r228817)
+++ head/sys/modules/ath/Makefile       Thu Dec 22 23:40:52 2011        
(r228818)
@@ -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}}
_______________________________________________
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"

Reply via email to