From 37e828b44b4b087ba9ca9beca754cbcfd2c2f95b Mon Sep 17 00:00:00 2001 From: aurel32 Date: Tue, 2 Sep 2008 00:08:58 +0000 Subject: 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 Signed-off-by: Ian Jackson Signed-off-by: Aurelien Jarno git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5127 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/scsi-generic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hw') diff --git a/hw/scsi-generic.c b/hw/scsi-generic.c index 60084cf..3973c25 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; -- cgit v1.1