From nobody Thu Apr 25 00:47:37 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1568124612; cv=none; d=zoho.com; s=zohoarc; b=X6j5V7HA9WXq5d15pProOd4iNDVWXWC+fx76voWHvKhEO9FP1WdNW+KRBb+bvl2dOpRiJAIZlzZcIRyRJFPcZq+ah9doQUb/LcJQGYZBi9c/a4ULnemImbBtPSlq8ApM1wjLVl7eyjqM+lo8mTvkANSEqaA/tLI7zUJ07xtl6Q8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1568124612; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=amRGDuBk3w90+EpnuveS0qzWEMwwR12rDpOdyFrw/MU=; b=E/kFTJcr0ohmQshhXZpOCYJNv1YGPO+wErYQwQyRgNooR/5x1TKqHpKaEk138Ye+dYnRnIr8qmYO2gxTCQ3QK9xtan8msMCVj3Wb9lawsLDQU7s/djH9hM04LkNUDbmiVQrXMLus5feihcYE3+Ktk2zP/NAC7ny9hUyROWHjTSQ= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1568124612371502.79661392729736; Tue, 10 Sep 2019 07:10:12 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1i7gon-0004QC-8t; Tue, 10 Sep 2019 14:08:29 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1i7gom-0004Q4-3S for xen-devel@lists.xenproject.org; Tue, 10 Sep 2019 14:08:28 +0000 Received: from esa5.hc3370-68.iphmx.com (unknown [216.71.155.168]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 75477eea-d3d4-11e9-b299-bc764e2007e4; Tue, 10 Sep 2019 14:08:27 +0000 (UTC) X-Inumbo-ID: 75477eea-d3d4-11e9-b299-bc764e2007e4 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1568124507; h=from:to:cc:subject:date:message-id:mime-version; bh=hs1Rq+5sr8vVrACBtVdBVwNvHI7qLQ8kZBiKeaYJd7c=; b=grBMdsOT0BsyEF8bHGzyvk5vtI442IxIpf29XX1VnnlEiYIWIk8jDXuy FGCq1c+gv12opQLbqnmNZseajQ25Y+QLz05LXCmDwYk6Q1/aJuXGInfNE O0XHAmkf8+DzEw8eZRUUei8NFw8pmZO9lKH70123GVChYvmLb9Bz80pzz k=; Authentication-Results: esa5.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=andrew.cooper3@citrix.com; spf=Pass smtp.mailfrom=Andrew.Cooper3@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Received-SPF: None (esa5.hc3370-68.iphmx.com: no sender authenticity information available from domain of andrew.cooper3@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa5.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="andrew.cooper3@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa5.hc3370-68.iphmx.com: domain of Andrew.Cooper3@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa5.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="Andrew.Cooper3@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ~all" Received-SPF: None (esa5.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa5.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: XIJkLehXZ+dgZr/jPmLmgdZ38fuMf4cPOY3BKR4LetZTkvErqRYtPKDYOKbWnR+M/jef06quvh 5Rj4wEqqM7CG2u9bTLz0PNlcuFMSWK+tbnylvHIFOzY5RYZl/Dtg+gSOUr3gT1m64g82VV5syQ kiGI2yNTHQW7YxZb1HFtrSi1dWj8sv+reO5AE2YOkh//HVgOe8aDyxOTxV4LVwHQg5Fl0C24dA NGqjbCUiqkLtE0PeqZzhHklU310hJlpiAr+QiGWOJ7p0hFAOwbOp+l7LrS7/WrcfrpIOuXJvwj 7SU= X-SBRS: 2.7 X-MesageID: 5565556 X-Ironport-Server: esa5.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.64,489,1559534400"; d="scan'208";a="5565556" From: Andrew Cooper To: Xen-devel Date: Tue, 10 Sep 2019 15:08:18 +0100 Message-ID: <20190910140818.9184-1-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH] tools/ocaml: Fix build error with CentOS 7 X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Andrew Cooper , Christian Lindig , Wei Liu , Ian Jackson Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28) complains: xenctrl_stubs.c: In function 'stub_xc_domain_create': xenctrl_stubs.c:216:28: error: 'val' may be used uninitialized in this function [-Werror=3Dmaybe-uninitialized] cfg.arch.emulation_flags =3D ocaml_list_to_c_bitmap ^ xenctrl_stubs.c:198:12: error: 'val' may be used uninitialized in this function [-Werror=3Dmaybe-uninitialized] cfg.flags =3D ocaml_list_to_c_bitmap ^ cc1: all warnings being treated as errors GCC doesn't point at the correct piece of code, but the diagnostic text is correct, and can occur when the list is empty. Initialise val to 0. Signed-off-by: Andrew Cooper --- CC: Ian Jackson CC: Wei Liu CC: Christian Lindig --- tools/ocaml/libs/xc/xenctrl_stubs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ocaml/libs/xc/xenctrl_stubs.c b/tools/ocaml/libs/xc/xenc= trl_stubs.c index f86ecc7b7e..d7bc2cf40d 100644 --- a/tools/ocaml/libs/xc/xenctrl_stubs.c +++ b/tools/ocaml/libs/xc/xenctrl_stubs.c @@ -160,7 +160,7 @@ static unsigned int ocaml_list_to_c_bitmap(value l) * for xenctrl_abi_check. The parsing there is ad-hoc. */ { - unsigned int val; + unsigned int val =3D 0; =20 for ( ; l !=3D Val_none; l =3D Field(l, 1) ) val |=3D 1u << Int_val(Field(l, 0)); --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel