From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:59643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTSxJ-0007jT-4b for qemu-devel@nongnu.org; Mon, 06 Jun 2011 02:06:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QTSxH-0005SZ-Qz for qemu-devel@nongnu.org; Mon, 06 Jun 2011 02:06:29 -0400 Received: from ozlabs.org ([203.10.76.45]:36610) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTSxH-0005SE-E9 for qemu-devel@nongnu.org; Mon, 06 Jun 2011 02:06:27 -0400 Date: Mon, 6 Jun 2011 16:06:19 +1000 From: David Gibson Message-ID: <20110606060619.GB1833@yookeroo.fritz.box> References: <20110606010233.7730.48177.malonedeb@chaenomeles.canonical.com> <20110606010233.7730.48177.malonedeb@chaenomeles.canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110606010233.7730.48177.malonedeb@chaenomeles.canonical.com> Subject: Re: [Qemu-devel] [Bug 793317] [NEW] Large amount of write-only variables List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eli <793317@bugs.launchpad.net> Cc: qemu-devel@nongnu.org On Mon, Jun 06, 2011 at 01:02:33AM -0000, Eli wrote: > Public bug reported: > > Whenever I try to compile the source from the git repo, it gets a large > number of "set but not used" errors, in files such as: > > hw/usb_ochi.c (line 526, 1114, and 1108) > hw/lsi53c895a.c (line 892) > kvm.c (line 973) > target-alpha/translate.c (line 1472, 1470) > linux-user/syscall.c (line 7062, 3754) > exec.c (line 1211) > linux-user/linuxload.c (line 60) > > Really now, why would anyone create so many write-only variables knowing > that it's compiled with write-only variables causing errors..? It's a new warning in gcc 4.6, which is why these weren't found before. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson