From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web09.35390.1613413802693613752 for ; Mon, 15 Feb 2021 10:30:03 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: pierre.gondois@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F2FE61FB; Mon, 15 Feb 2021 10:30:00 -0800 (PST) Received: from e120189.arm.com (unknown [10.57.16.232]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id BA2803F73B; Mon, 15 Feb 2021 10:29:59 -0800 (PST) From: "PierreGondois" To: devel@edk2.groups.io, Alexei.Fedorov@arm.com, leif@nuviainc.com, sami.mujawar@arm.com Subject: [PATCH 1/1] DynamicTablesPkg/AmlLib: Remove unused variables Date: Mon, 15 Feb 2021 18:29:57 +0000 Message-Id: <20210215182957.14642-1-Pierre.Gondois@arm.com> X-Mailer: git-send-email 2.17.1 From: Pierre Gondois Building the DynamicTablesPkg for a NOOPT target fails because unused variables are set. Remove these variables. Fixes: d9800046ea43 Reported-by: Leif Lindholm Signed-off-by: Pierre Gondois --- .../Library/Common/AmlLib/NameSpace/AmlNameSpace.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/DynamicTablesPkg/Library/Common/AmlLib/NameSpace/AmlNameSpace.c b/DynamicTablesPkg/Library/Common/AmlLib/NameSpace/AmlNameSpace.c index 2d055e9fb964..8da47405af85 100644 --- a/DynamicTablesPkg/Library/Common/AmlLib/NameSpace/AmlNameSpace.c +++ b/DynamicTablesPkg/Library/Common/AmlLib/NameSpace/AmlNameSpace.c @@ -1,7 +1,7 @@ /** @file AML NameSpace. - Copyright (c) 2019 - 2020, Arm Limited. All rights reserved.
+ Copyright (c) 2019 - 2021, Arm Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -1075,10 +1075,8 @@ AmlEnumeratePathCallback ( AML_PATH_SEARCH_CONTEXT * PathSearchContext; AML_STREAM * SearchPathBStream; - CHAR8 * SearchedPath; AML_STREAM * CurrNodePathBStream; - CHAR8 * CurrNodePath; UINT32 CurrNodePathSize; ContinueEnum = TRUE; @@ -1123,9 +1121,6 @@ AmlEnumeratePathCallback ( goto exit_handler; } - SearchedPath = (CHAR8*)AmlStreamGetCurrPos (SearchPathBStream); - CurrNodePath = (CHAR8*)AmlStreamGetCurrPos (CurrNodePathBStream); - // Get the raw AML absolute pathname of the current node. Status1 = AmlGetRawNameSpacePath (Node, 0, CurrNodePathBStream); if (EFI_ERROR (Status1)) { -- 2.17.1