From nobody Sat May 4 08:24:33 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1527478214445639.997145454725; Sun, 27 May 2018 20:30:14 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 2BB3D203B85BA; Sun, 27 May 2018 20:30:13 -0700 (PDT) Received: from muon.bluestop.org (muon.bluestop.org [96.73.9.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 7B18720348604 for ; Sun, 27 May 2018 20:30:11 -0700 (PDT) Received: from muon.bluestop.org (localhost [127.0.0.1]) by muon.bluestop.org (Postfix) with ESMTP id EF5105951F; Sun, 27 May 2018 21:29:59 -0600 (MDT) Received: from muon.bluestop.org ([127.0.0.1]) by muon.bluestop.org (muon.bluestop.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id A6rcFDzUxDJs; Sun, 27 May 2018 21:29:59 -0600 (MDT) Received: from cube.int.bluestop.org (gw.bluestop.org [96.73.9.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by muon.bluestop.org (Postfix) with ESMTPSA; Sun, 27 May 2018 21:29:59 -0600 (MDT) X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=96.73.9.1; helo=muon.bluestop.org; envelope-from=rebecca@bluestop.org; receiver=edk2-devel@lists.01.org From: Rebecca Cran To: edk2-devel@lists.01.org, Yonghong Zhu , Liming Gao Date: Sun, 27 May 2018 21:28:36 -0600 Message-Id: <20180528032836.65181-1-rebecca@bluestop.org> X-Mailer: git-send-email 2.17.0 Subject: [edk2] [PATCH] Fix a couple of build errors in BaseTools when using gcc 8 X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" --- BaseTools/Source/C/GenVtf/GenVtf.c | 2 +- BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BaseTools/Source/C/GenVtf/GenVtf.c b/BaseTools/Source/C/GenVtf= /GenVtf.c index 6f66ddc84..4d87e1c8c 100644 --- a/BaseTools/Source/C/GenVtf/GenVtf.c +++ b/BaseTools/Source/C/GenVtf/GenVtf.c @@ -1470,7 +1470,7 @@ Returns: // FitStartPtr =3D (FIT_TABLE *) RelativeAddress; =20 - strncpy ((CHAR8 *) &FitStartPtr->CompAddress, FIT_SIGNATURE, 8); // "_F= IT_ " + memcpy(&FitStartPtr->CompAddress, FIT_SIGNATURE, 8); // "_FIT_ " assert (((VtfInfo->CompSize & 0x00FFFFFF) % 16) =3D=3D 0); FitStartPtr->CompSize =3D (VtfInfo->CompSize & 0x00FFFFFF) / 16; FitStartPtr->CompVersion =3D MAKE_VERSION (VtfInfo->MajorVer, VtfInfo->= MinorVer); diff --git a/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp b/BaseTools/So= urce/C/VfrCompile/VfrUtilityLib.cpp index f73b70d79..73a318724 100644 --- a/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp +++ b/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp @@ -3284,7 +3284,7 @@ CVfrStringDB::GetVarStoreNameFormStringId ( UINT8 BlockType; EFI_HII_STRING_PACKAGE_HDR *PkgHeader; =20 - if (mStringFileName =3D=3D '\0' ) { + if (*mStringFileName =3D=3D '\0' ) { return NULL; } =20 --=20 2.17.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel