From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMhZT-00044y-2T for qemu-devel@nongnu.org; Thu, 19 Sep 2013 12:59:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMhZL-0002Rl-Me for qemu-devel@nongnu.org; Thu, 19 Sep 2013 12:59:14 -0400 Received: from v220110690675601.yourvserver.net ([37.221.199.173]:33751) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMhZL-0002RR-Fa for qemu-devel@nongnu.org; Thu, 19 Sep 2013 12:59:07 -0400 Message-ID: <523B2D55.6060008@weilnetz.de> Date: Thu, 19 Sep 2013 18:59:01 +0200 From: Stefan Weil MIME-Version: 1.0 References: <523B2BBF.7020801@suse.de> In-Reply-To: <523B2BBF.7020801@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] block/stream.c -Werror build failure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= Cc: Kevin Wolf , Anthony Liguori , qemu-devel , Stefan Hajnoczi Am 19.09.2013 18:52, schrieb Andreas F=C3=A4rber: > Hello, > > As reported yesterday on IRC, since the last round of pulls I am gettin= g > the following warning-treated-as-error: > > CC block/stream.o > /home/andreas/QEMU/qemu/block/stream.c: In function =E2=80=98stream_run= =E2=80=99: > /home/andreas/QEMU/qemu/block/stream.c:111:14: error: =E2=80=98copy=E2=80= =99 may be used > uninitialized in this function [-Werror=3Dmaybe-uninitialized] > cc1: all warnings being treated as errors > make: *** [block/stream.o] Fehler 1 > > $ gcc --version > gcc (SUSE Linux) 4.7.2 20130108 [gcc-4_7-branch revision 195012] > > However I only got this in 1 of 2 repositories I tried. It turns out > that --enable-debug avoids this build issue. > > The stream.c code itself looks okay to me. In the case of ret >=3D 0, c= opy > is always assigned, including the goto code path. > Still, could we initialize the copy variable to false or revert whateve= r > change introduced this build regression? (-Wextra?) > > Regards, > Andreas > This will be fixed by the next pull request for the block tree. See also http://patchwork.ozlabs.org/patch/275503/ Regards, Stefan