From: Shenglei Zhang Date: Wed, 14 Aug 2019 03:04:45 +0000 (+0800) Subject: ShellPkg/UefiShellAcpiViewCommandLib: Remove the variable "Index" X-Git-Tag: edk2-stable201908~90 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=c0996b76c1b0230f33e46ffa0b30fce680a03b8b 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 --- 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)) {