From nobody Fri Apr 26 16:47:22 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+81809+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+81809+1787277+3901457@groups.io; dmarc=pass(p=none dis=none) header.from=groups.io ARC-Seal: i=1; a=rsa-sha256; t=1634026584; cv=none; d=zohomail.com; s=zohoarc; b=WlKocZ103bcMee4N0fwRAaux08xOLlvcrgrImFRYqDZ3RB/hc7HZqoE9DxVH/n7kDPao+oHu4zZbE0TUiX0gmJcOUXoIusqB9pi3aHKhCHuNnvGRwZcruAKQ7vYewIcojkEk8kSBu77IQ89zHWOfvY8jHea7FnJHT3Y1iIn3qjo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1634026584; h=Content-Type:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=ahtrYN5JvypCzkC+FhLWOaOT7sLCnQBmkEoDUWuHcEM=; b=kBeq5LHNf8iCDiSZ0L/G9lbfU94Ny7rF42yWitmszfN+xSetmFwsvIr8wGPKD/2OMbnAiNhZU4fBTWSeQW/ckj+zNK9apQyzuuUYrxW7R7pxtybywLp+vOss+ZpgNIUCg3J8+4+M+qcRyoOItd56bbokG+ur0W9/0KgRJ2JRBZE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+81809+1787277+3901457@groups.io; dmarc=pass header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 163402658447421.475683995918416; Tue, 12 Oct 2021 01:16:24 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id lseHYY1788612xf3RPEBOhuI; Tue, 12 Oct 2021 01:16:24 -0700 X-Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by mx.groups.io with SMTP id smtpd.web09.10727.1634026582622821508 for ; Tue, 12 Oct 2021 01:16:22 -0700 X-Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.54]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4HT7kD0tvGz1DHNs; Tue, 12 Oct 2021 16:14:44 +0800 (CST) X-Received: from kwepemm600004.china.huawei.com (7.193.23.242) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Tue, 12 Oct 2021 16:16:19 +0800 X-Received: from kwephisprg16640.huawei.com (10.247.83.252) by kwepemm600004.china.huawei.com (7.193.23.242) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Tue, 12 Oct 2021 16:16:18 +0800 From: "wenyi,xie via groups.io" To: , , , , CC: , Subject: [edk2-devel] [PATCH EDK2 v1 1/1] EmbeddedPkg:Fix compiler warning Date: Tue, 12 Oct 2021 16:16:14 +0800 Message-ID: <20211012081614.367072-2-xiewenyi2@huawei.com> In-Reply-To: <20211012081614.367072-1-xiewenyi2@huawei.com> References: <20211012081614.367072-1-xiewenyi2@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.247.83.252] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm600004.china.huawei.com (7.193.23.242) X-CFilter-Loop: Reflected Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,xiewenyi2@huawei.com X-Gm-Message-State: XeZCD9Q6RJgv2hD8Kbhm787lx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1634026584; bh=hk7+ctBVTDdNVNah4FJy/BIj09ZHcuaPiegl6Sl0yt4=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=xC+mJEtspaLCGlJz/GUltBRKHAKFlHTja8GGB7uEdeXcWpTQlqQ0Gxq+un/Dig4oxTg EUBUai4kAxq/2mTmstIdOeCipKb9m4oM5uChOPrwTyHtZjOhs9Ee2ufpJDecmHA7r6kK8 /o5C4720HXDAE9L90m2/h+v9nuw85zv3OYc= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1634026586595100006 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Fixes the following compiler warning in VS2019. edk2\EmbeddedPkg\Library\GdbSerialDebugPortLib\GdbSerialDebugPortLib.c(127): error C2220: the following warning is treated as an error edk2\EmbeddedPkg\Library\GdbSerialDebugPortLib\GdbSerialDebugPortLib.c(127): warning C4244: 'function': conversion from 'UINTN' to 'UINT32', possible loss of data edk2\EmbeddedPkg\Library\PrePiLib\FwVol.c(347): error C2220: the following warning is treated as an error edk2\EmbeddedPkg\Library\PrePiLib\FwVol.c(347): warning C4244: 'function': conversion from 'UINTN' to 'UINT32', possible loss of data Cc: Leif Lindholm Cc: Ard Biesheuvel Cc: Abner Chang Cc: Daniel Schaefer Signed-off-by: Wenyi Xie Acked-by: Abner Chang --- EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.c | 2 +- EmbeddedPkg/Library/PrePiLib/FwVol.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLi= b.c b/EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.c index d2bafcf69b60..0f50a8b64191 100644 --- a/EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.c +++ b/EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.c @@ -18,7 +18,7 @@ =20 =20 EFI_DEBUGPORT_PROTOCOL *gDebugPort =3D NULL; -UINTN gTimeOut =3D 0; +UINT32 gTimeOut =3D 0; =20 /** The constructor function initializes the UART. diff --git a/EmbeddedPkg/Library/PrePiLib/FwVol.c b/EmbeddedPkg/Library/Pre= PiLib/FwVol.c index 881506edddaf..46ea5f733f60 100644 --- a/EmbeddedPkg/Library/PrePiLib/FwVol.c +++ b/EmbeddedPkg/Library/PrePiLib/FwVol.c @@ -298,7 +298,7 @@ FfsProcessSection ( UINT16 SectionAttribute; UINT32 AuthenticationStatus; CHAR8 *CompressedData; - UINTN CompressedDataLength; + UINT32 CompressedDataLength; =20 =20 *OutputBuffer =3D NULL; --=20 2.20.1.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#81809): https://edk2.groups.io/g/devel/message/81809 Mute This Topic: https://groups.io/mt/86257559/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-