From c0996b76c1b0230f33e46ffa0b30fce680a03b8b Mon Sep 17 00:00:00 2001 From: Shenglei Zhang Date: Wed, 14 Aug 2019 11:04:45 +0800 Subject: [PATCH] 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 Cc: Ray Ni Cc: Zhichao Gao Signed-off-by: Shenglei Zhang Reviewed-by: Zhichao Gao Reviewed-by: Jaben Carsey --- .../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 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)) { -- 2.39.2