17 lines
464 B
Diff
17 lines
464 B
Diff
Storing the address of an ephemeral variable into a persistent pointer
|
|
is flagged by GCC 12 as a dangling-pointer error.
|
|
|
|
--- a/source/components/utilities/utdebug.c
|
|
+++ b/source/components/utilities/utdebug.c
|
|
@@ -185,7 +185,10 @@ AcpiUtInitStackPtrTrace (
|
|
ACPI_SIZE CurrentSp;
|
|
|
|
|
|
+#pragma GCC diagnostic push
|
|
+#pragma GCC diagnostic ignored "-Wdangling-pointer="
|
|
AcpiGbl_EntryStackPointer = &CurrentSp;
|
|
+#pragma GCC diagnostic pop
|
|
}
|
|
|
|
|