[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [5127] suppress a couple of spurious warnings in scsi-gener
From: |
Aurelien Jarno |
Subject: |
[Qemu-devel] [5127] suppress a couple of spurious warnings in scsi-generic.c |
Date: |
Tue, 02 Sep 2008 00:08:59 +0000 |
Revision: 5127
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5127
Author: aurel32
Date: 2008-09-02 00:08:58 +0000 (Tue, 02 Sep 2008)
Log Message:
-----------
suppress a couple of spurious warnings in scsi-generic.c
This patch fixes two spurious `may be used uninitialised' warnings
when compiling with some compilers.
Signed-off-by: Andre Przywara <address@hidden>
Signed-off-by: Ian Jackson <address@hidden>
Signed-off-by: Aurelien Jarno <address@hidden>
Modified Paths:
--------------
trunk/hw/scsi-generic.c
Modified: trunk/hw/scsi-generic.c
===================================================================
--- trunk/hw/scsi-generic.c 2008-09-01 22:12:14 UTC (rev 5126)
+++ trunk/hw/scsi-generic.c 2008-09-02 00:08:58 UTC (rev 5127)
@@ -478,8 +478,8 @@
uint8_t *cmd, int lun)
{
SCSIDeviceState *s = d->state;
- uint32_t len;
- int cmdlen;
+ uint32_t len=0;
+ int cmdlen=0;
SCSIRequest *r;
int ret;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [5127] suppress a couple of spurious warnings in scsi-generic.c,
Aurelien Jarno <=