From 703ac59b27ef1475430a64ab2b5d6e9bd265c912 Mon Sep 17 00:00:00 2001 From: Andre Herbst Date: Tue, 27 Jun 2023 22:00:03 +0200 Subject: [PATCH] Ports/acpica-tools: Prevent dangling pointer compiler warning --- ...0001-Stop-compiler-warnings-on-dangling-pointer.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Ports/acpica-tools/patches/0001-Stop-compiler-warnings-on-dangling-pointer.patch b/Ports/acpica-tools/patches/0001-Stop-compiler-warnings-on-dangling-pointer.patch index 88d6f655ed..72e8ccfd0f 100644 --- a/Ports/acpica-tools/patches/0001-Stop-compiler-warnings-on-dangling-pointer.patch +++ b/Ports/acpica-tools/patches/0001-Stop-compiler-warnings-on-dangling-pointer.patch @@ -22,3 +22,12 @@ index f789e68..fd18f5c 100644 AcpiGbl_EntryStackPointer = &CurrentSp; +@@ -205,7 +205,7 @@ void + AcpiUtTrackStackPtr ( + void) + { +- ACPI_SIZE CurrentSp; ++ static ACPI_SIZE CurrentSp; + + + if (&CurrentSp < AcpiGbl_LowestStackPointer)