[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 3/3] block/stream.c: ensure copy always set
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH 3/3] block/stream.c: ensure copy always set |
Date: |
Tue, 24 Sep 2013 14:06:28 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Mon, Sep 23, 2013 at 05:07:30PM +0100, address@hidden wrote:
> From: Alex Bennée <address@hidden>
>
> This only showed up when compiling with
> --enable-trace-backend=stderr|ftrace at which point the compiler
> complains with the following:
>
> block/stream.c: In function ‘stream_run’:
> block/stream.c:141:22: error: ‘copy’ may be used uninitialized in this
> function [-Werror=uninitialized]
>
> Not sure exactly why it needs these options but it does seem clear the
> negative return case should be handled.
> ---
> block/stream.c | 2 ++
> 1 file changed, 2 insertions(+)
Stefan Weil already posted a similar patch:
http://patchwork.ozlabs.org/patch/276936/