* [Qemu-devel] [5127] suppress a couple of spurious warnings in scsi-generic.c
@ 2008-09-02 0:08 Aurelien Jarno
0 siblings, 0 replies; only message in thread
From: Aurelien Jarno @ 2008-09-02 0:08 UTC (permalink / raw)
To: qemu-devel
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 <andre.przywara@amd.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-02 0:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-02 0:08 [Qemu-devel] [5127] suppress a couple of spurious warnings in scsi-generic.c Aurelien Jarno
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).