Skip to contentSkip to conversation

Fix a number of unused-but-set-variable warnings (new with gcc-4.6)

PATCH In review Hans de Goede 3 participants 3 messages Jun 8, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix a number of unused-but-set-variable warnings (new with gcc-4.6)

---
 hw/lsi53c895a.c   |    2 --
 target-i386/kvm.c |    4 ++--
 2 files changed, 2 insertions(+), 4 deletions(-)
hw/lsi53c895a.c +0 -2
index 83084b6..90c6cbc 100644
@@ -889,7 +889,6 @@ static void lsi_do_msgout(LSIState *s)
     uint8_t msg;
     int len;
     uint32_t current_tag;
-    SCSIDevice *current_dev;
     lsi_request *current_req, *p, *p_next;
     int id;
 
@@ -901,7 +900,6 @@ static void lsi_do_msgout(LSIState *s)
         current_req = lsi_find_by_tag(s, current_tag);
     }
     id = (current_tag >> 8) & 0xf;
-    current_dev = s->bus.devs[id];
 
     DPRINTF("MSG out len=%d\n", s->dbc);
     while (s->dbc) {
target-i386/kvm.c +2 -2
index faedc6c..6f003b0 100644
@@ -970,7 +970,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);
@@ -986,7 +986,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;
Signature · 1 line
1.7.5.1
#1 lore raw

Am 08.06.2011 10:28, schrieb Hans de Goede:

Quoted 4 lines
---
 hw/lsi53c895a.c   |    2 --
 target-i386/kvm.c |    4 ++--
 2 files changed, 2 insertions(+), 4 deletions(-)

SoB is missing. And don't we have multiple patches to fix the same thing already? Someone should just merge them...

Kevin

#2 lore raw
Quoted 8 lines · Kevin Wolf

Am 08.06.2011 10:28, schrieb Hans de Goede:

Quoted 4 lines
---
 hw/lsi53c895a.c   |    2 --
 target-i386/kvm.c |    4 ++--
 2 files changed, 2 insertions(+), 4 deletions(-)

SoB is missing. And don't we have multiple patches to fix the same thing already? Someone should just merge them...

Yes these fixes have already been submitted several times, it would indeed be good to finally have them merged ;)

Christophe