From nobody Mon Apr 29 02:14:55 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1502986525864534.4495529867398; Thu, 17 Aug 2017 09:15:25 -0700 (PDT) Received: from localhost ([::1]:33143 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diNS6-0000FI-JR for importer@patchew.org; Thu, 17 Aug 2017 12:15:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diNR7-00083h-K3 for qemu-devel@nongnu.org; Thu, 17 Aug 2017 12:14:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1diNR4-00076W-Ef for qemu-devel@nongnu.org; Thu, 17 Aug 2017 12:14:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50666) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1diNR4-00076M-8E for qemu-devel@nongnu.org; Thu, 17 Aug 2017 12:14:18 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 65465C057FAD; Thu, 17 Aug 2017 16:14:16 +0000 (UTC) Received: from dell-r430-03.lab.eng.brq.redhat.com (dell-r430-03.lab.eng.brq.redhat.com [10.34.112.60]) by smtp.corp.redhat.com (Postfix) with ESMTP id CB84817BAB; Thu, 17 Aug 2017 16:14:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 65465C057FAD Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=imammedo@redhat.com From: Igor Mammedov To: qemu-devel@nongnu.org Date: Thu, 17 Aug 2017 18:14:13 +0200 Message-Id: <1502986453-223221-1-git-send-email-imammedo@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Thu, 17 Aug 2017 16:14:16 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH for-2.10???] fix build failure in nbd_read_reply_entry() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, pbonzini@redhat.com, peter.maydell@linaro.org, mreitz@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" travis builds fail at HEAD at rc3 master with block/nbd-client.c: In function =E2=80=98nbd_read_reply_entry=E2=80=99: block/nbd-client.c:110:8: error: =E2=80=98ret=E2=80=99 may be used uninit= ialized in this function [-Werror=3Duninitialized] fix it by initializing 'ret' to 0 Signed-off-by: Igor Mammedov Reviewed-by: Eric Blake --- block/nbd-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/nbd-client.c b/block/nbd-client.c index 422ecb4..02c8e20 100644 --- a/block/nbd-client.c +++ b/block/nbd-client.c @@ -70,7 +70,7 @@ static coroutine_fn void nbd_read_reply_entry(void *opaqu= e) { NBDClientSession *s =3D opaque; uint64_t i; - int ret; + int ret =3D 0; Error *local_err =3D NULL; =20 while (!s->quit) { --=20 2.7.4