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>
This commit is contained in:
Shenglei Zhang 2019-08-14 11:04:45 +08:00 committed by Liming Gao
parent 5ab96088ae
commit c0996b76c1
1 changed files with 0 additions and 2 deletions

View File

@ -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)) {