From: Christophe Fergeau Date: Wed, 1 Jun 2011 12:56:30 +0000 (+0200) Subject: lsi: Fix unused-but-set-variable warning X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~5676 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bf79d499828cffc15274da28f8e579e36c086642;p=sdk%2Femulator%2Fqemu.git lsi: Fix unused-but-set-variable warning This warning is new in gcc 4.6. Signed-off-by: Christophe Fergeau Acked-by: Paolo Bonzini Signed-off-by: Stefan Hajnoczi --- 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) {