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

2010-10-07 Thread malc
On Thu, 7 Oct 2010, Blue Swirl wrote: > On Thu, Oct 7, 2010 at 8:27 AM, malc wrote: > > On Thu, 7 Oct 2010, Paolo Bonzini wrote: > > > >> 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 'sw

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

2010-10-07 Thread Blue Swirl
On Thu, Oct 7, 2010 at 7:27 AM, Paolo Bonzini wrote: > 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

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

2010-10-07 Thread Blue Swirl
On Thu, Oct 7, 2010 at 8:27 AM, malc wrote: > On Thu, 7 Oct 2010, Paolo Bonzini wrote: > >> 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:2

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

2010-10-07 Thread malc
On Thu, 7 Oct 2010, Paolo Bonzini wrote: > 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 us

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

2010-10-07 Thread Paolo Bonzini
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