mirror of https://github.com/acidanthera/audk.git
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:
parent
5ab96088ae
commit
c0996b76c1
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue