mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
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:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user