From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=34316 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P3kzN-0002Yp-Sj for qemu-devel@nongnu.org; Thu, 07 Oct 2010 03:34:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P3kst-0006UN-R7 for qemu-devel@nongnu.org; Thu, 07 Oct 2010 03:27:24 -0400 Received: from mail-iw0-f173.google.com ([209.85.214.173]:55613) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P3kst-0006U8-N4 for qemu-devel@nongnu.org; Thu, 07 Oct 2010 03:27:23 -0400 Received: by iwn38 with SMTP id 38so17737iwn.4 for ; Thu, 07 Oct 2010 00:27:23 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4CAD7657.8080400@redhat.com> Date: Thu, 07 Oct 2010 09:27:19 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 09/11] i386: avoid a write only variable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel On 10/06/2010 11:34 PM, Blue Swirl wrote: > Compiling with GCC 4.6.0 20100925 produced warnings: > /src/qemu/target-i386/op_helper.c: In function 'switch_tss': > /src/qemu/target-i386/op_helper.c:283:53: error: variable 'new_trap' > set but not used [-Werror=unused-but-set-variable] > > Fix by deleting the variable. Again, this warning tells us the emulation is incorrect, so it's wrong to remove it. Paolo