qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2] block: Fix compiler warning (-Werror=uniniti


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH v2] block: Fix compiler warning (-Werror=uninitialized)
Date: Wed, 25 Sep 2013 13:28:21 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Am 22.09.2013 um 08:19 hat Stefan Weil geschrieben:
> The patch fixes a warning from gcc (Debian 4.6.3-14+rpi1) 4.6.3:
> 
> block/stream.c:141:22: error:
> ‘copy’ may be used uninitialized in this function [-Werror=uninitialized]
> 
> This is not a real bug - a better compiler would not complain.
> 
> Now 'copy' has always a defined value, so the check for ret >= 0
> can be removed.
> 
> Signed-off-by: Stefan Weil <address@hidden>

Thanks, applied to the block branch.

Kevin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]