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.
This commit is contained in:
Joel Sherrill
2025-09-25 08:37:10 -05:00
parent 86f00b3183
commit 81dd232071

View File

@@ -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 (