From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: [PATCH 03 of 45] gcc-4.6 compile fix: tools/xenstore/xenstored_core.c Date: Fri, 20 May 2011 10:35:33 +0200 Message-ID: <20110520083532.GA14336@aepfle.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline 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: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Fri, May 20, Keir Fraser wrote: > On 19/05/2011 20:05, "Olaf Hering" wrote: > > > # HG changeset patch > > # User Olaf Hering > > # Date 1305824384 -7200 > > # Node ID cb0ed92e451d06789cb1a0ba14967bda3a7a5bcb > > # Parent 9c492ce99bbe24e1b4bbe43c754f136ac19a372f > > gcc-4.6 compile fix: tools/xenstore/xenstored_core.c > > > > xenstored_core.c: In function 'trace': > > xenstored_core.c:133:11: error: variable 'dummy' set but not used > > [-Werror=unused-but-set-variable] > > xenstored_core.c: In function 'trigger_reopen_log': > > xenstored_core.c:203:6: error: variable 'dummy' set but not used > > [-Werror=unused-but-set-variable] > > I applied the first couple of these patches, but... We don't set > -Werror=unused-but-set-variable, so we don't actually need these fixes, do > we? Unless they are cleanups or fixes in some other way? Its the default of gcc 4.6, at least it fails to compile in openSuSE Factory. Olaf