From nobody Mon Feb 9 16:51:33 2026 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+72132+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+72132+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1614130754; cv=none; d=zohomail.com; s=zohoarc; b=niPa6QoNKpEurkEV1x+1dY9BXAQrnZLSnxUQCejdmpU2ICCN1D/ToYkczPu8Ri/oILCLG29k3hNR/dKdj6HWolFC31Nh1r4ivdw+f+yGWJjg9rfYeo1ZW0+KXxL2PCPac4WxIWWHZa3sIB9k6Mjer0f4J8+Eew74WM68Sb8sd6M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1614130754; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=ivtJvFL7Ae/mO06twvX3DOPza89wwFjtE+OwokX8xOo=; b=RhpZg6YY9IMHEFT7zvHzIiyTzjMV1QqsF4Vy+QFHuXielb9UVgXVgUKU/F3hut4fbNx7NZgm1PwdQZLJy2X+Zm8qw6skPRFCNXkp3JrQZQKfy9I/VwqfjFQJnyb0Zq/D1TLfn+hzAgx/Z1x2KGbbTeoc50HtvUjN8W5MfZziZNU= 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+72132+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1614130753984721.4289686704249; Tue, 23 Feb 2021 17:39:13 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id KnJBYY1788612xNHyzXrJ2s4; Tue, 23 Feb 2021 17:39:13 -0800 X-Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by mx.groups.io with SMTP id smtpd.web11.1184.1614130748295588563 for ; Tue, 23 Feb 2021 17:39:08 -0800 X-Received: by mail-pj1-f43.google.com with SMTP id gm18so212492pjb.1 for ; Tue, 23 Feb 2021 17:39:08 -0800 (PST) X-Gm-Message-State: 1mZzwkj3XX6T5t2Y6JLtvEIUx1787277AA= X-Google-Smtp-Source: ABdhPJx1TJV2r9oM7tq4l4UjJFeOYyz026RGabWn8f+KlAQaY8gh7DEh/vFvj2s8a7p8aCaqh+Qt6Q== X-Received: by 2002:a17:90a:f493:: with SMTP id bx19mr1656536pjb.213.1614130747402; Tue, 23 Feb 2021 17:39:07 -0800 (PST) X-Received: from localhost.localdomain ([240d:1e:84:2c00:4c90:1fc7:fcf3:2538]) by smtp.googlemail.com with ESMTPSA id bj9sm340236pjb.49.2021.02.23.17.39.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Feb 2021 17:39:07 -0800 (PST) From: "Takuto Naito" To: devel@edk2.groups.io Cc: Takuto Naito , Sai Chaganty , Nate DeSimone , Heng Luo Subject: [edk2-devel] [PATCH edk2-platforms v1 2/2] TigerlakeOpenBoardPkg: Fix build error with GCC5 Date: Wed, 24 Feb 2021 10:37:36 +0900 Message-Id: <20210224013736.74815-3-naitaku@gmail.com> In-Reply-To: <20210224013736.74815-1-naitaku@gmail.com> References: <20210224013736.74815-1-naitaku@gmail.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,naitaku@gmail.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1614130753; bh=QCVztFhr3TwC+xhvUIWcoxbb4D/j5+7m0TvnwWsKjzQ=; h=Cc:Date:From:Reply-To:Subject:To; b=liyv9hIS5c2+P8eiDCAmE6XdXPHXUbXfk3cEKl1FcPJ9K69KVkTMVoSZG4gjSGnj9rS WgaH15Ips6HrWJzzHtlSSRlKKU8kzXH/E9s/OufdjnBPlm92e5RB5TSz8rrPd0/ckUamw kuujnY3NsRTOFJoFVB+DklkDVDC8UXu1cQ4= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3224 Fix build errors caused by "-Werror=3Dunused-but-set-variable" with GCC5. These build errors occur only with DEBUG target because RELEASE_GCC5_X64_CC_FLAGS has "-Wno-unused-but-set-variable", but DEBUG_GCC5_X64_CC_FLAGS doesn't. Cc: Sai Chaganty Cc: Nate DeSimone Cc: Heng Luo Signed-off-by: Takuto Naito Reviewed-by: Heng Luo --- .../Library/BasePlatformHookLib/BasePlatformHookLib.c | 8 -------- .../Library/BoardInitLib/PeiTigerlakeURvpInitPreMemLib.c | 2 ++ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Platform/Intel/TigerlakeOpenBoardPkg/Library/BasePlatformHookL= ib/BasePlatformHookLib.c b/Platform/Intel/TigerlakeOpenBoardPkg/Library/Bas= ePlatformHookLib/BasePlatformHookLib.c index cc5337698b..0baee8795d 100644 --- a/Platform/Intel/TigerlakeOpenBoardPkg/Library/BasePlatformHookLib/Base= PlatformHookLib.c +++ b/Platform/Intel/TigerlakeOpenBoardPkg/Library/BasePlatformHookLib/Base= PlatformHookLib.c @@ -182,14 +182,6 @@ PlatformHookSerialPortInitialize ( VOID ) { - UINT16 IndexPort; - UINT16 DataPort; - UINT8 Index; - - IndexPort =3D 0; - DataPort =3D 0; - Index =3D 0; - // // Enable I/O decoding for COM1(3F8h-3FFh), COM2(2F8h-2FFh), I/O port 2E= h/2Fh, 4Eh/4Fh, 60h/64Fh and 62h/66h. // diff --git a/Platform/Intel/TigerlakeOpenBoardPkg/TigerlakeURvp/Library/Boa= rdInitLib/PeiTigerlakeURvpInitPreMemLib.c b/Platform/Intel/TigerlakeOpenBoa= rdPkg/TigerlakeURvp/Library/BoardInitLib/PeiTigerlakeURvpInitPreMemLib.c index 2ad229c1cd..0bba41e6d4 100644 --- a/Platform/Intel/TigerlakeOpenBoardPkg/TigerlakeURvp/Library/BoardInitL= ib/PeiTigerlakeURvpInitPreMemLib.c +++ b/Platform/Intel/TigerlakeOpenBoardPkg/TigerlakeURvp/Library/BoardInitL= ib/PeiTigerlakeURvpInitPreMemLib.c @@ -393,6 +393,7 @@ TigerlakeURvpInitPreMem ( /// Performing PlatformInitPreMemCallBack after PeiReadOnlyVariable2 PPI= produced /// Status =3D PeiServicesNotifyPpi (&mPreMemNotifyList); + ASSERT_EFI_ERROR (Status); =20 /// /// After code reorangized, memorycallback will run because the PPI is a= lready @@ -400,6 +401,7 @@ TigerlakeURvpInitPreMem ( /// done before. /// Status =3D PeiServicesNotifyPpi (&mMemDiscoveredNotifyList); + ASSERT_EFI_ERROR (Status); =20 DEBUG ((DEBUG_INFO, "TigerlakeURvpInitPreMem End!\n")); =20 --=20 2.30.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 (#72132): https://edk2.groups.io/g/devel/message/72132 Mute This Topic: https://groups.io/mt/80867667/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-