Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jan 2012 17:14:13 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r229602 - in stable/9/sys: conf modules/ce
Message-ID:  <201201051714.q05HEDQg045915@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Thu Jan  5 17:14:13 2012
New Revision: 229602
URL: http://svn.freebsd.org/changeset/base/229602

Log:
  MFC r228971:
  
  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.

Modified:
  stable/9/sys/conf/files.i386
  stable/9/sys/modules/ce/Makefile
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/conf/   (props changed)

Modified: stable/9/sys/conf/files.i386
==============================================================================
--- stable/9/sys/conf/files.i386	Thu Jan  5 17:12:20 2012	(r229601)
+++ stable/9/sys/conf/files.i386	Thu Jan  5 17:14:13 2012	(r229602)
@@ -144,7 +144,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

Modified: stable/9/sys/modules/ce/Makefile
==============================================================================
--- stable/9/sys/modules/ce/Makefile	Thu Jan  5 17:12:20 2012	(r229601)
+++ stable/9/sys/modules/ce/Makefile	Thu Jan  5 17:14:13 2012	(r229602)
@@ -26,3 +26,6 @@ opt_ng_cronyx.h:
 .endif
 
 .include <bsd.kmod.mk>
+
+CWARNFLAGS.tau32-ddk.c=	${NO_WCONSTANT_CONVERSION}
+CWARNFLAGS+=		${CWARNFLAGS.${.IMPSRC:T}}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201051714.q05HEDQg045915>