qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 1/3] lsi: Fix unused-but-set-variable warning


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 1/3] lsi: Fix unused-but-set-variable warning
Date: Wed, 01 Jun 2011 16:19:51 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10

On 06/01/2011 02:56 PM, Christophe Fergeau wrote:
This warning is new in gcc 4.6.

Signed-off-by: Christophe Fergeau<address@hidden>
---
  hw/lsi53c895a.c |    2 --
  1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c
index 83084b6..90c6cbc 100644
--- a/hw/lsi53c895a.c
+++ b/hw/lsi53c895a.c
@@ -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) {

Acked-by: Paolo Bonzini <address@hidden>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]