WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] introduce __must_be_array

To: Jan Beulich <JBeulich@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] introduce __must_be_array
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Wed, 20 May 2009 06:15:53 -0700
Cc:
Delivery-date: Wed, 20 May 2009 06:16:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4A141BFB0200007800001C73@xxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcnZS5At0yNWRsEtRNCkR/Y0ePrO/wAAYnnf
Thread-topic: [Xen-devel] [PATCH] introduce __must_be_array
User-agent: Microsoft-Entourage/12.17.0.090302
On 20/05/2009 06:04, "Jan Beulich" <JBeulich@xxxxxxxxxx> wrote:

> Cloning the similar construct from Linux, allowing to detect improper
> uses of ARRAY_SIZE() at build time.
> 
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

Would simply removing the cast to void from BUILD_BUG_ON() lead to compiler
warnings?

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel