From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMhSt-0000Um-2s for qemu-devel@nongnu.org; Thu, 19 Sep 2013 12:52:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMhSl-0000od-PI for qemu-devel@nongnu.org; Thu, 19 Sep 2013 12:52:27 -0400 Received: from cantor2.suse.de ([195.135.220.15]:35140 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMhSl-0000oT-It for qemu-devel@nongnu.org; Thu, 19 Sep 2013 12:52:19 -0400 Message-ID: <523B2BBF.7020801@suse.de> Date: Thu, 19 Sep 2013 18:52:15 +0200 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] block/stream.c -Werror build failure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Cc: Kevin Wolf , Stefan Weil , Anthony Liguori , Stefan Hajnoczi Hello, As reported yesterday on IRC, since the last round of pulls I am getting 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, cop= y is always assigned, including the goto code path. Still, could we initialize the copy variable to false or revert whatever change introduced this build regression? (-Wextra?) Regards, Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=C3=B6rffer; HRB 16746 AG N=C3=BC= rnberg