From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.136, mailfrom: shenglei.zhang@intel.com) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by groups.io with SMTP; Tue, 13 Aug 2019 20:07:19 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Aug 2019 20:07:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,383,1559545200"; d="scan'208";a="187981114" Received: from shenglei-dev.ccr.corp.intel.com ([10.239.158.52]) by orsmga002.jf.intel.com with ESMTP; 13 Aug 2019 20:07:17 -0700 From: "Zhang, Shenglei" To: devel@edk2.groups.io Cc: Jaben Carsey , Ray Ni , Zhichao Gao Subject: [PATCH 1/1] ShellPkg/UefiShellAcpiViewCommandLib: Remove the variable "Index" Date: Wed, 14 Aug 2019 11:07:16 +0800 Message-Id: <20190814030716.10892-1-shenglei.zhang@intel.com> X-Mailer: git-send-email 2.18.0.windows.1 In IortParser.c ,the variable Index is set but not used in function DumpIortNodeNamedComponent. This will cause build failure when building ShellPkg with GCC. Cc: Jaben Carsey Cc: Ray Ni Cc: Zhichao Gao Signed-off-by: Shenglei Zhang --- .../UefiShellAcpiViewCommandLib/Parsers/Iort/IortParser.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Iort/IortParser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Iort/IortParser.c index 8912d415a755..f1cdb9ac01d8 100644 --- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Iort/IortParser.c +++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Iort/IortParser.c @@ -472,7 +472,6 @@ DumpIortNodeNamedComponent ( ) { UINT32 Offset; - UINT32 Index; Offset = ParseAcpi ( TRUE, @@ -485,7 +484,6 @@ DumpIortNodeNamedComponent ( // Estimate the Device Name length PrintFieldName (2, L"Device Object Name"); - Index = 0; while ((*(Ptr + Offset) != 0) && (Offset < Length)) { -- 2.18.0.windows.1