From patchwork Tue May 3 11:03:40 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans de Goede X-Patchwork-Id: 93763 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 5222CB6F18 for ; Tue, 3 May 2011 21:02:11 +1000 (EST) Received: from localhost ([::1]:50587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHDMm-0008E8-J5 for incoming@patchwork.ozlabs.org; Tue, 03 May 2011 07:02:08 -0400 Received: from eggs.gnu.org ([140.186.70.92]:54499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHDMd-0008Di-3b for qemu-devel@nongnu.org; Tue, 03 May 2011 07:01:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHDMc-0004Tt-6y for qemu-devel@nongnu.org; Tue, 03 May 2011 07:01:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:10573) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHDMb-0004TB-UF for qemu-devel@nongnu.org; Tue, 03 May 2011 07:01:58 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p43B1unD004266 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 3 May 2011 07:01:56 -0400 Received: from shalem.localdomain.com (vpn2-9-204.ams2.redhat.com [10.36.9.204]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p43B1sTE014858; Tue, 3 May 2011 07:01:54 -0400 From: Hans de Goede To: qemu-devel@nongnu.org Date: Tue, 3 May 2011 13:03:40 +0200 Message-Id: <1304420620-8409-1-git-send-email-hdegoede@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Hans de Goede Subject: [Qemu-devel] [PATCH] Fix a number of unused-but-set-variable warnings (new with gcc-4.6) 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 --- target-i386/kvm.c | 4 ++-- tcg/tcg.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) Acked-by: Amit Shah diff --git a/target-i386/kvm.c b/target-i386/kvm.c index a13599d..e9e8d54 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -950,7 +950,7 @@ static int kvm_get_xsave(CPUState *env) #ifdef KVM_CAP_XSAVE struct kvm_xsave* xsave; int ret, i; - uint16_t cwd, swd, twd, fop; + uint16_t cwd, swd, twd; if (!kvm_has_xsave()) { return kvm_get_fpu(env); @@ -966,7 +966,7 @@ static int kvm_get_xsave(CPUState *env) cwd = (uint16_t)xsave->region[0]; swd = (uint16_t)(xsave->region[0] >> 16); twd = (uint16_t)xsave->region[1]; - fop = (uint16_t)(xsave->region[1] >> 16); + /* fop = (uint16_t)(xsave->region[1] >> 16); */ env->fpstt = (swd >> 11) & 7; env->fpus = swd; env->fpuc = cwd; diff --git a/tcg/tcg.c b/tcg/tcg.c index 8748c05..11a8daf 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) {