packages/utils/acpica-unix/patches/0005-pragma-dangling-pointer-CurrentSp.patch
Philip Prindeville 934d3538f7 acpica-unix: Update to 20230331
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2023-04-07 13:30:40 -06:00

16 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
}