From: Keir Fraser Subject: Re: [PATCH] introduce __must_be_array Date: Wed, 20 May 2009 07:10:36 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 20/05/2009 07:05, "Keir Fraser" 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