Commit 37e828b44b4b087ba9ca9beca754cbcfd2c2f95b

Authored by aurel32
1 parent 17b086f7

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
Showing 1 changed file with 2 additions and 2 deletions
hw/scsi-generic.c
... ... @@ -478,8 +478,8 @@ static int32_t scsi_send_command(SCSIDevice *d, uint32_t tag,
478 478 uint8_t *cmd, int lun)
479 479 {
480 480 SCSIDeviceState *s = d->state;
481   - uint32_t len;
482   - int cmdlen;
  481 + uint32_t len=0;
  482 + int cmdlen=0;
483 483 SCSIRequest *r;
484 484 int ret;
485 485  
... ...