From 81dd232071f9d81d26a624bb39e86e9f109f1390 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 25 Sep 2025 08:37:10 -0500 Subject: [PATCH] bsps/include/acpi/acpica/acpixf.h: Address unused parameter warnings This is a third party file and the debug macros create unused parameter warnings when debugging is not enabled. There are multiple macros with layers. Rather than attempt to unwind all this, disabled the -Wunused-parameter GCC warning around the short block of code causing these warnings. --- bsps/include/acpi/acpica/acpixf.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bsps/include/acpi/acpica/acpixf.h b/bsps/include/acpi/acpica/acpixf.h index ba4adf2831..9b872af589 100644 --- a/bsps/include/acpi/acpica/acpixf.h +++ b/bsps/include/acpi/acpica/acpixf.h @@ -1390,6 +1390,11 @@ AcpiBiosWarning ( ...)) +#ifdef __rtems__ +/* The debug output is ugly macro code which generates unused parameter warnings. */ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-parameter" +#endif /* rtems */ /* * Debug output */ @@ -1424,6 +1429,10 @@ AcpiTracePoint ( BOOLEAN Begin, UINT8 *Aml, char *Pathname)) +#ifdef __rtems__ +/* Reenable unused parameter warnings. */ +#pragma GCC diagnostic pop +#endif /* rtems */ ACPI_STATUS AcpiInitializeDebugger (