ACPICA fixes for gcc2.95.3

pswalk has issues in code we don't use for gcc 2.95.3, so just disable
Can we drop gcc2.95.3 soon?

Change-Id: I334b5029f97ad66b46bd0054c05c75062fec27fc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3723
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
This commit is contained in:
Fredrik Holmqvist 2021-01-31 16:13:20 +01:00
parent fe0910891a
commit 3f6f7f7420
2 changed files with 3 additions and 3 deletions

View File

@ -193,7 +193,7 @@ AcpiPsDeleteParseTree (
if (Op != Parent)
{
/* This is the descending case */
#if 0 //gcc2.95.3 warns about printf format in code we do not use
if (ACPI_IS_DEBUG_ENABLED (ACPI_LV_PARSE_TREES, _COMPONENT))
{
/* This debug option will print the entire parse tree */
@ -211,7 +211,7 @@ AcpiPsDeleteParseTree (
}
AcpiOsPrintf ("\n");
}
#endif
/* Look for an argument or child of the current op */
Next = AcpiPsGetArg (Op, 0);

View File

@ -1379,7 +1379,7 @@ typedef struct acpi_pnp_device_id_list
{
UINT32 Count; /* Number of IDs in Ids array */
UINT32 ListSize; /* Size of list, including ID strings */
ACPI_PNP_DEVICE_ID Ids[]; /* ID array */
ACPI_PNP_DEVICE_ID Ids[1]; /* ID array */
} ACPI_PNP_DEVICE_ID_LIST;