Received: from [140.186.70.92] (port=37943 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHjym-0001px-NN for qemu-devel@nongnu.org; Thu, 27 May 2010 16:47:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHjyl-0005Do-9a for qemu-devel@nongnu.org; Thu, 27 May 2010 16:47:00 -0400 Received: from are.twiddle.net ([75.149.56.221]:51171) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHjyl-0005Dg-1V for qemu-devel@nongnu.org; Thu, 27 May 2010 16:46:59 -0400 From: Richard Henderson Date: Thu, 27 May 2010 13:45:50 -0700 Message-Id: <1274993204-30766-9-git-send-email-rth@twiddle.net> In-Reply-To: <1274993204-30766-1-git-send-email-rth@twiddle.net> References: <1274993204-30766-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH 08/62] tcg-s390: Avoid set-but-not-used werrors. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: agraf@suse.de, aurelien@aurel32.net The s_bits variable was only used in a dprintf, and isn't really informative since we already dump 'opc' from which s_bits is trivially derived. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 16 ++++++---------- 1 files changed, 6 insertions(+), 10 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index 1f961ad..eb3ca38 100644 --- a/tcg/s390/tcg-target.c +++ b/tcg/s390/tcg-target.c @@ -519,7 +519,7 @@ static void tcg_finish_qemu_ldst(TCGContext* s, uint16_t *label2_ptr) and endianness conversion */ static void tcg_out_qemu_ld(TCGContext* s, const TCGArg* args, int opc) { - int addr_reg, data_reg, mem_index, s_bits; + int addr_reg, data_reg, mem_index; int arg0 = TCG_REG_R2; uint16_t *label2_ptr; @@ -527,10 +527,8 @@ static void tcg_out_qemu_ld(TCGContext* s, const TCGArg* args, int opc) addr_reg = *args++; mem_index = *args; - s_bits = opc & 3; - - dprintf("tcg_out_qemu_ld opc %d data_reg %d addr_reg %d mem_index %d " - "s_bits %d\n", opc, data_reg, addr_reg, mem_index, s_bits); + dprintf("tcg_out_qemu_ld opc %d data_reg %d addr_reg %d mem_index %d\n" + opc, data_reg, addr_reg, mem_index); tcg_prepare_qemu_ldst(s, data_reg, addr_reg, mem_index, opc, &label2_ptr, 0); @@ -596,7 +594,7 @@ static void tcg_out_qemu_ld(TCGContext* s, const TCGArg* args, int opc) static void tcg_out_qemu_st(TCGContext* s, const TCGArg* args, int opc) { - int addr_reg, data_reg, mem_index, s_bits; + int addr_reg, data_reg, mem_index; uint16_t *label2_ptr; int arg0 = TCG_REG_R2; @@ -604,10 +602,8 @@ static void tcg_out_qemu_st(TCGContext* s, const TCGArg* args, int opc) addr_reg = *args++; mem_index = *args; - s_bits = opc; - - dprintf("tcg_out_qemu_st opc %d data_reg %d addr_reg %d mem_index %d " - "s_bits %d\n", opc, data_reg, addr_reg, mem_index, s_bits); + dprintf("tcg_out_qemu_st opc %d data_reg %d addr_reg %d mem_index %d\n" + opc, data_reg, addr_reg, mem_index); tcg_prepare_qemu_ldst(s, data_reg, addr_reg, mem_index, opc, &label2_ptr, 1); -- 1.7.0.1