Received: from eggs.gnu.org ([140.186.70.92]:47766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMIVc-0005dp-Cn for qemu-devel@nongnu.org; Tue, 17 May 2011 07:32:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QMIVa-00020R-Rv for qemu-devel@nongnu.org; Tue, 17 May 2011 07:32:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMIVa-000207-Kv for qemu-devel@nongnu.org; Tue, 17 May 2011 07:32:14 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4HBWCj3017161 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 17 May 2011 07:32:12 -0400 Received: from teriyaki.redhat.com (ovpn-113-91.phx2.redhat.com [10.3.113.91]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p4HBPBgu009357 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Tue, 17 May 2011 07:32:11 -0400 Date: Tue, 17 May 2011 13:25:10 +0200 From: Christophe Fergeau Message-ID: <20110517112510.GM8769@teriyaki.redhat.com> References: <1304420620-8409-1-git-send-email-hdegoede@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/jvaajy/zP2g41+Q" Content-Disposition: inline In-Reply-To: <1304420620-8409-1-git-send-email-hdegoede@redhat.com> Subject: Re: [Qemu-devel] [PATCH] Fix a number of unused-but-set-variable warnings (new with gcc-4.6) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --/jvaajy/zP2g41+Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Hans, On Tue, May 03, 2011 at 01:03:40PM +0200, Hans de Goede wrote: > 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) > @@ -966,7 +966,7 @@ static int kvm_get_xsave(CPUState *env) > cwd =3D (uint16_t)xsave->region[0]; > swd =3D (uint16_t)(xsave->region[0] >> 16); > twd =3D (uint16_t)xsave->region[1]; > - fop =3D (uint16_t)(xsave->region[1] >> 16); > + /* fop =3D (uint16_t)(xsave->region[1] >> 16); */ Wouldn't it be better to drop this line? > env->fpstt =3D (swd >> 11) & 7; > env->fpus =3D swd; > env->fpuc =3D 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=20 This function uses #if defined(TCG_TARGET_I386) in other places, so I'd use parentheses here for consistency. > int call_type; > #endif > int i; > @@ -612,7 +612,7 @@ void tcg_gen_callN(TCGContext *s, TCGv_ptr func, unsi= gned int flags, > =20 > *gen_opc_ptr++ =3D INDEX_op_call; > nparam =3D gen_opparam_ptr++; > -#ifdef TCG_TARGET_I386 > +#if defined TCG_TARGET_I386 && TCG_TARGET_REG_BITS < 64=20 Same here. Apart from that, I also need this patch to be able to build qemu on fedora 15 :) Christophe --/jvaajy/zP2g41+Q Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk3SWxYACgkQJKRp+3pW944KxwCeO9VDIBoy32mnf2euWLzAL3BP hwsAn2igCfJBkiRZD7bcwp8isXCLjUBR =T9vj -----END PGP SIGNATURE----- --/jvaajy/zP2g41+Q--