From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KaJSC-0003Yn-KO for qemu-devel@nongnu.org; Mon, 01 Sep 2008 20:09:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KaJSA-0003YV-CI for qemu-devel@nongnu.org; Mon, 01 Sep 2008 20:09:03 -0400 Received: from [199.232.76.173] (port=51063 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KaJSA-0003YS-6S for qemu-devel@nongnu.org; Mon, 01 Sep 2008 20:09:02 -0400 Received: from savannah.gnu.org ([199.232.41.3]:49831 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KaJS9-0002xX-QC for qemu-devel@nongnu.org; Mon, 01 Sep 2008 20:09:01 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KaJS8-00048Q-MT for qemu-devel@nongnu.org; Tue, 02 Sep 2008 00:09:00 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KaJS7-000480-Tb for qemu-devel@nongnu.org; Tue, 02 Sep 2008 00:09:00 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Tue, 02 Sep 2008 00:08:59 +0000 Subject: [Qemu-devel] [5127] suppress a couple of spurious warnings in scsi-generic.c Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 Signed-off-by: Ian Jackson Signed-off-by: Aurelien Jarno 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;