[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] suppress a couple of spurious warnings in scsi-
From: |
Aurelien Jarno |
Subject: |
Re: [Qemu-devel] [PATCH] suppress a couple of spurious warnings in scsi-generic.c |
Date: |
Tue, 2 Sep 2008 02:09:39 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Thu, Aug 28, 2008 at 05:39:56PM +0100, Ian Jackson wrote:
> This patch fixes two spurious `may be used uninitialised' warnings
> when compiling with some compilers.
>
> Signed-off-by: Andre Przywara <address@hidden>
> Signed-off-by: Ian Jackson <address@hidden>
>
> (Manually cherry-picked from qemu-xen master
> c9dba66abe8f4c4df28f3b32befe49da1b749a48)
Applied, thanks.
> 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;
>
>
>
>
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' address@hidden | address@hidden
`- people.debian.org/~aurel32 | www.aurel32.net
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-devel] [PATCH] suppress a couple of spurious warnings in scsi-generic.c,
Aurelien Jarno <=