qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH 09/11] i386: avoid a write only variable


From: Paolo Bonzini
Subject: [Qemu-devel] Re: [PATCH 09/11] i386: avoid a write only variable
Date: Thu, 07 Oct 2010 09:27:19 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100907 Fedora/3.1.3-1.fc13 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.3

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]