summaryrefslogtreecommitdiffstats
path: root/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers
diff options
context:
space:
mode:
authorShenglei Zhang <shenglei.zhang@intel.com>2019-08-14 11:04:45 +0800
committerLiming Gao <liming.gao@intel.com>2019-08-15 11:14:49 +0800
commitc0996b76c1b0230f33e46ffa0b30fce680a03b8b (patch)
treeb44bd3ca77fffd57924d1d2485d3316bcb6b834a /ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers
parent5ab96088aec98a9a24e5a8b82ed41d1930239f84 (diff)
downloadedk2-c0996b76c1b0230f33e46ffa0b30fce680a03b8b.tar.gz
edk2-c0996b76c1b0230f33e46ffa0b30fce680a03b8b.tar.bz2
edk2-c0996b76c1b0230f33e46ffa0b30fce680a03b8b.zip
ShellPkg/UefiShellAcpiViewCommandLib: Remove the variable "Index"
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 <jaben.carsey@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Zhichao Gao <zhichao.gao@intel.com> Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com> Reviewed-by: Zhichao Gao <zhichao.gao@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Diffstat (limited to 'ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers')
-rw-r--r--ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Iort/IortParser.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Iort/IortParser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Iort/IortParser.c
index 8912d415a7..f1cdb9ac01 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)) {