Received: from eggs.gnu.org ([2001:4830:134:3::10]:57367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VORO3-0007lP-Qc for qemu-devel@nongnu.org; Tue, 24 Sep 2013 08:06:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VORNz-0000BY-Q0 for qemu-devel@nongnu.org; Tue, 24 Sep 2013 08:06:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VORNz-0000BR-J1 for qemu-devel@nongnu.org; Tue, 24 Sep 2013 08:06:35 -0400 Date: Tue, 24 Sep 2013 14:06:28 +0200 From: Stefan Hajnoczi Message-ID: <20130924120628.GF27882@stefanha-thinkpad.redhat.com> References: <1379952450-29640-1-git-send-email-alex.bennee@linaro.org> <1379952450-29640-4-git-send-email-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1379952450-29640-4-git-send-email-alex.bennee@linaro.org> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 3/3] block/stream.c: ensure copy always set List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: alex.bennee@linaro.org Cc: kwolf@redhat.com, qemu-devel@nongnu.org On Mon, Sep 23, 2013 at 05:07:30PM +0100, alex.bennee@linaro.org wrote: > From: Alex Benn=C3=A9e >=20 > This only showed up when compiling with > --enable-trace-backend=3Dstderr|ftrace at which point the compiler > complains with the following: >=20 > block/stream.c: In function =E2=80=98stream_run=E2=80=99: > block/stream.c:141:22: error: =E2=80=98copy=E2=80=99 may be used uninit= ialized in this function [-Werror=3Duninitialized] >=20 > 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/