qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Christophe Fergeau <cfergeau@redhat.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Fix a number of unused-but-set-variable warnings (new with gcc-4.6)
Date: Tue, 17 May 2011 13:25:10 +0200	[thread overview]
Message-ID: <20110517112510.GM8769@teriyaki.redhat.com> (raw)
In-Reply-To: <1304420620-8409-1-git-send-email-hdegoede@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1684 bytes --]

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 = (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); */

Wouldn't it be better to drop this line?

>      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 

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, 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 

Same here.

Apart from that, I also need this patch to be able to build qemu on fedora
15 :)

Christophe

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2011-05-17 11:32 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-03 11:03 [Qemu-devel] [PATCH] Fix a number of unused-but-set-variable warnings (new with gcc-4.6) Hans de Goede
2011-05-17 11:25 ` Christophe Fergeau [this message]
2011-05-17 17:51   ` Aurelien Jarno
2011-05-27 10:34 ` Amit Shah
2011-05-30 10:28   ` [Qemu-devel] [PATCH 0/2] Fix unused-but-set-variable warnings Christophe Fergeau
2011-05-30 10:28     ` [Qemu-devel] [PATCH 1/2] tcg: Fix unused-but-set-variable warning Christophe Fergeau
2011-05-30 10:28     ` [Qemu-devel] [PATCH 2/2] kvm: " Christophe Fergeau
2011-05-30 10:53     ` [Qemu-devel] [PATCH 0/2] Fix unused-but-set-variable warnings Amit Shah
2011-05-30 13:56       ` Christophe Fergeau
2011-05-31  5:43         ` Amit Shah
2011-05-31  7:53           ` [Qemu-devel] [PATCH-v3 " Christophe Fergeau
2011-05-31  7:53             ` [Qemu-devel] [PATCH-v3 1/2] tcg: Fix unused-but-set-variable warning Christophe Fergeau
2011-06-03 16:35               ` Aurelien Jarno
2011-05-31  7:53             ` [Qemu-devel] [PATCH-v3 2/2] kvm: " Christophe Fergeau
2011-06-10 10:43               ` Christophe Fergeau
2011-06-10 12:17                 ` Stefan Hajnoczi
2011-06-10 18:46               ` Stefan Hajnoczi
2011-06-11  7:46                 ` Jan Kiszka
2011-06-11 13:06                   ` Stefan Hajnoczi
2011-06-14 19:50                     ` Christophe Fergeau
  -- strict thread matches above, loose matches on Subject: below --
2011-06-08  8:28 [Qemu-devel] [PATCH] Fix a number of unused-but-set-variable warnings (new with gcc-4.6) Hans de Goede
2011-06-08  9:22 ` Kevin Wolf
2011-06-08 11:22   ` Christophe Fergeau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110517112510.GM8769@teriyaki.redhat.com \
    --to=cfergeau@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).