mirror of
https://github.com/acpica/acpica/
synced 2025-02-25 09:54:42 +03:00
iasl: Fix a compile warning
This patch fixes the following GCC compile issue: ../../../source/common/dmtbdump.c: In function ‘AcpiDmDumpHmat’: ../../../source/common/dmtbdump.c:1802:30: error: variable ‘Hmat’ set but not used [-Werror=unused-but-set-variable] ACPI_TABLE_HMAT *Hmat; ^ cc1: all warnings being treated as errors make[1]: *** [obj/dmtbdump.o] Error 1 Reported by: David E. Box <david.e.box@linux.intel.com> Signed-off-by: Lv Zheng <lv.zheng@intel.com>
This commit is contained in:
parent
623ae1512b
commit
31790c7cac
@ -1799,7 +1799,6 @@ AcpiDmDumpHmat (
|
||||
ACPI_TABLE_HEADER *Table)
|
||||
{
|
||||
ACPI_STATUS Status;
|
||||
ACPI_TABLE_HMAT *Hmat;
|
||||
ACPI_HMAT_STRUCTURE *HmatStruct;
|
||||
ACPI_HMAT_LOCALITY *HmatLocality;
|
||||
ACPI_HMAT_CACHE *HmatCache;
|
||||
@ -1817,7 +1816,6 @@ AcpiDmDumpHmat (
|
||||
{
|
||||
return;
|
||||
}
|
||||
Hmat = ACPI_CAST_PTR (ACPI_TABLE_HMAT, Table);
|
||||
Offset = sizeof (ACPI_TABLE_HMAT);
|
||||
|
||||
while (Offset < Table->Length)
|
||||
|
Loading…
x
Reference in New Issue
Block a user