diff options
author | aurel32 | 2008-09-02 02:08:58 +0200 |
---|---|---|
committer | aurel32 | 2008-09-02 02:08:58 +0200 |
commit | 37e828b44b4b087ba9ca9beca754cbcfd2c2f95b (patch) | |
tree | f07fea08093aeea53b30bea8a962f8a1ede50b21 /hw/scsi-generic.c | |
parent | SH4: Remove dyngen leftovers (diff) | |
download | qemu-37e828b44b4b087ba9ca9beca754cbcfd2c2f95b.tar.gz qemu-37e828b44b4b087ba9ca9beca754cbcfd2c2f95b.tar.xz qemu-37e828b44b4b087ba9ca9beca754cbcfd2c2f95b.zip |
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>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5127 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/scsi-generic.c')
-rw-r--r-- | hw/scsi-generic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/scsi-generic.c b/hw/scsi-generic.c index 60084cff64..3973c25800 100644 --- a/hw/scsi-generic.c +++ b/hw/scsi-generic.c @@ -478,8 +478,8 @@ static int32_t scsi_send_command(SCSIDevice *d, uint32_t tag, 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; |