[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] introduce __must_be_array
On 20/05/2009 07:05, "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx> wrote: >> While I didn't try it, I'm convinced it would. > > I tried it (gcc 4.1.2) and it didn't. And I'm not sure what the theoretical > warning message would be: Throwing away a non-void value? We do that with > return values from functions very often. > > I'll change BUILD_BUG_ON() and avoid BUILD_BUG_ON_ZERO(), but revert to your > approach if some gccs turn out to act differently. Actually I suppose having ZERO in the name is nice in arithmetic expressions. So I'll just check in as-is after all. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |