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

>>> Keir Fraser <keir.fraser@xxxxxxxxxxxxx> 20.05.09 15:15 >>>
>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?

While I didn't try it, I'm convinced it would.

Jan


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