Re: [Qemu-devel] [PATCH] tcg/ppc/tcg-target.c: Avoid 'set but not used' gcc warnings

2011-09-01 Thread Michael S. Tsirkin
On Thu, Sep 01, 2011 at 04:45:01PM +0100, Peter Maydell wrote: > Move the declaration and initialisation of some variables in > tcg_out_qemu_ld and tcg_out_qemu_st inside CONFIG_SOFTMMU, to > avoid the "variable set but not used" warning of gcc 4.6. > > Signed-off-by: Peter Maydell > --- > tcg/p

Re: [Qemu-devel] [PATCH] tcg/ppc/tcg-target.c: Avoid 'set but not used' gcc warnings

2011-09-01 Thread malc
On Thu, 1 Sep 2011, Peter Maydell wrote: > Move the declaration and initialisation of some variables in > tcg_out_qemu_ld and tcg_out_qemu_st inside CONFIG_SOFTMMU, to > avoid the "variable set but not used" warning of gcc 4.6. > > Signed-off-by: Peter Maydell > --- > tcg/ppc/tcg-target.c | 2

[Qemu-devel] [PATCH] tcg/ppc/tcg-target.c: Avoid 'set but not used' gcc warnings

2011-09-01 Thread Peter Maydell
Move the declaration and initialisation of some variables in tcg_out_qemu_ld and tcg_out_qemu_st inside CONFIG_SOFTMMU, to avoid the "variable set but not used" warning of gcc 4.6. Signed-off-by: Peter Maydell --- tcg/ppc/tcg-target.c | 20 ++-- 1 files changed, 10 insertions(+