From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: Re: [PATCH 18 of 45] gcc-4.6 compile fix: xen/common/cpupool.c Date: Fri, 20 May 2011 08:43:38 +0100 Message-ID: <4DD637CA02000078000425F0@vpn.id2.novell.com> References: <982cc1330a16cc27e3c1.1305831937@probook.site> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <982cc1330a16cc27e3c1.1305831937@probook.site> 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: Olaf Hering Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> On 19.05.11 at 21:05, Olaf Hering wrote: > # HG changeset patch > # User Olaf Hering > # Date 1305824402 -7200 > # Node ID 982cc1330a16cc27e3c1f16b4ee9874340ec01ed > # Parent 0ef116beb380f5a8f2bef7825c0f5f450520e923 > gcc-4.6 compile fix: xen/common/cpupool.c >=20 > cpupool.c: In function 'cpupool_add_domain': > cpupool.c:359:9: error: variable 'n_dom' set but not used=20 > [-Werror=3Dunused-but-set-variable] > cpupool.c: In function 'cpupool_rm_domain': > cpupool.c:384:9: error: variable 'n_dom' set but not used=20 > [-Werror=3Dunused-but-set-variable] > cpupool.c:383:9: error: variable 'cpupool_id' set but not used=20 > [-Werror=3Dunused-but-set-variable] >=20 > Signed-off-by: Olaf Hering >=20 > diff -r 0ef116beb380 -r 982cc1330a16 xen/common/cpupool.c > --- a/xen/common/cpupool.c Thu May 19 19:00:00 2011 +0200 > +++ b/xen/common/cpupool.c Thu May 19 19:00:02 2011 +0200 > @@ -35,7 +35,7 @@ static DEFINE_SPINLOCK(cpupool_lock); > =20 > DEFINE_PER_CPU(struct cpupool *, cpupool); > =20 > -#define cpupool_dprintk(x...) ((void)0) > +#define cpupool_dprintk(fmt, args...) { if (0) printk(fmt, ##args); } #define cpupool_dprintk(fmt, args...) ({ if (0) printk(fmt, ##args); }) > =20 > static struct cpupool *alloc_cpupool_struct(void) > { >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com=20 > http://lists.xensource.com/xen-devel=20