From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOnGi-00087e-E5 for qemu-devel@nongnu.org; Wed, 25 Sep 2013 07:28:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VOnGd-0004AK-Il for qemu-devel@nongnu.org; Wed, 25 Sep 2013 07:28:32 -0400 Date: Wed, 25 Sep 2013 13:28:21 +0200 From: Kevin Wolf Message-ID: <20130925112821.GE2898@dhcp-200-207.str.redhat.com> References: <1379830750-23801-1-git-send-email-sw@weilnetz.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1379830750-23801-1-git-send-email-sw@weilnetz.de> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2] block: Fix compiler warning (-Werror=uninitialized) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: qemu-trivial , Andreas =?iso-8859-1?Q?F=E4rber?= , qemu-devel , Stefan Hajnoczi 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: >=20 > block/stream.c:141:22: error: > =E2=80=98copy=E2=80=99 may be used uninitialized in this function [-Wer= ror=3Duninitialized] >=20 > This is not a real bug - a better compiler would not complain. >=20 > Now 'copy' has always a defined value, so the check for ret >=3D 0 > can be removed. >=20 > Signed-off-by: Stefan Weil Thanks, applied to the block branch. Kevin