summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-12-29 21:17:35 +0000
committerdim <dim@FreeBSD.org>2011-12-29 21:17:35 +0000
commitd93f743cd1a3949bc8e094e928da15ed5851f707 (patch)
treea5776c7c33b9cdc131eb5d38d99ff739c85acdbc
parent644e38ede6762623e61236040a3c14d308da8145 (diff)
downloadFreeBSD-src-d93f743cd1a3949bc8e094e928da15ed5851f707.zip
FreeBSD-src-d93f743cd1a3949bc8e094e928da15ed5851f707.tar.gz
For sys/dev/ce/tau32-ddk.c, disable the following warning when building
with clang: sys/dev/ce/tau32-ddk.c:1228:37: warning: implicit truncation from 'int' to bitfield changes value from 65532 to 8188 [-Wconstant-conversion] Since this file is obfuscated C, we can never determine (in a sane way, at least :) if this points to a real problem or not. The driver has been in the tree for more than five years, so it most likely isn't. MFC after: 1 week
-rw-r--r--sys/conf/files.i3863
-rw-r--r--sys/modules/ce/Makefile3
2 files changed, 5 insertions, 1 deletions
diff --git a/sys/conf/files.i386 b/sys/conf/files.i386
index 8244612..8d36c349 100644
--- a/sys/conf/files.i386
+++ b/sys/conf/files.i386
@@ -148,7 +148,8 @@ dev/atkbdc/atkbdc_subr.c optional atkbdc
dev/atkbdc/psm.c optional psm atkbdc
dev/ce/ceddk.c optional ce
dev/ce/if_ce.c optional ce
-dev/ce/tau32-ddk.c optional ce
+dev/ce/tau32-ddk.c optional ce \
+ compile-with "${NORMAL_C} ${NO_WCONSTANT_CONVERSION}"
dev/cm/if_cm_isa.c optional cm isa
dev/coretemp/coretemp.c optional coretemp
dev/cp/cpddk.c optional cp
diff --git a/sys/modules/ce/Makefile b/sys/modules/ce/Makefile
index a7bccff..2d54680 100644
--- a/sys/modules/ce/Makefile
+++ b/sys/modules/ce/Makefile
@@ -26,3 +26,6 @@ opt_ng_cronyx.h:
.endif
.include <bsd.kmod.mk>
+
+CWARNFLAGS.tau32-ddk.c= ${NO_WCONSTANT_CONVERSION}
+CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}
OpenPOWER on IntegriCloud