From: "Jan Beulich" Subject: Re: [PATCH] introduce __must_be_array Date: Wed, 20 May 2009 14:39:10 +0100 Message-ID: <4A14241E0200007800001CCD@vpn.id2.novell.com> References: <4A141BFB0200007800001C73@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org >>> Keir Fraser 20.05.09 15:15 >>> >On 20/05/2009 06:04, "Jan Beulich" wrote: > >> Cloning the similar construct from Linux, allowing to detect improper >> uses of ARRAY_SIZE() at build time. >>=20 >> Signed-off-by: Jan Beulich > >Would simply removing the cast to void from BUILD_BUG_ON() lead to = compiler >warnings? While I didn't try it, I'm convinced it would. Jan