From patchwork Mon May 30 10:28:02 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Fergeau X-Patchwork-Id: 97901 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E9909B6F6E for ; Mon, 30 May 2011 20:29:02 +1000 (EST) Received: from localhost ([::1]:56895 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQziU-00084V-5q for incoming@patchwork.ozlabs.org; Mon, 30 May 2011 06:28:58 -0400 Received: from eggs.gnu.org ([140.186.70.92]:39962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQziA-000843-Hv for qemu-devel@nongnu.org; Mon, 30 May 2011 06:28:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQzi9-0005QM-Jy for qemu-devel@nongnu.org; Mon, 30 May 2011 06:28:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQzi9-0005Q8-Bw for qemu-devel@nongnu.org; Mon, 30 May 2011 06:28:37 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4UASRN3003785 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 30 May 2011 06:28:27 -0400 Received: from localhost.localdomain (ovpn-113-61.phx2.redhat.com [10.3.113.61]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p4UASEA7000328 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 30 May 2011 06:28:26 -0400 From: Christophe Fergeau To: qemu-devel@nongnu.org Date: Mon, 30 May 2011 12:28:02 +0200 Message-Id: <1306751283-31537-2-git-send-email-cfergeau@redhat.com> In-Reply-To: <1306751283-31537-1-git-send-email-cfergeau@redhat.com> References: <20110527103458.GA30093@amit-x200.redhat.com> <1306751283-31537-1-git-send-email-cfergeau@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Amit Shah , Hans de Goede , Christophe Fergeau , Aurelien Jarno Subject: [Qemu-devel] [PATCH 1/2] tcg: Fix unused-but-set-variable warning X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Based on a patch from Hans de Goede This warning is new in gcc 4.6. Acked-by: Amit Shah --- tcg/tcg.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tcg/tcg.c b/tcg/tcg.c index 8748c05..e53b54c 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -585,7 +585,7 @@ void tcg_register_helper(void *func, const char *name) void tcg_gen_callN(TCGContext *s, TCGv_ptr func, unsigned int flags, int sizemask, TCGArg ret, int nargs, TCGArg *args) { -#ifdef TCG_TARGET_I386 +#if defined(TCG_TARGET_I386) && TCG_TARGET_REG_BITS < 64 int call_type; #endif int i; @@ -612,7 +612,7 @@ void tcg_gen_callN(TCGContext *s, TCGv_ptr func, unsigned int flags, *gen_opc_ptr++ = INDEX_op_call; nparam = gen_opparam_ptr++; -#ifdef TCG_TARGET_I386 +#if defined(TCG_TARGET_I386) && TCG_TARGET_REG_BITS < 64 call_type = (flags & TCG_CALL_TYPE_MASK); #endif if (ret != TCG_CALL_DUMMY_ARG) {