summaryrefslogtreecommitdiff
path: root/Ports/acpica-tools/patches/0001--Stop-compiler-warnings-on-dangling-pointer.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Ports/acpica-tools/patches/0001--Stop-compiler-warnings-on-dangling-pointer.patch')
-rw-r--r--Ports/acpica-tools/patches/0001--Stop-compiler-warnings-on-dangling-pointer.patch25
1 files changed, 25 insertions, 0 deletions
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
new file mode 100644
index 0000000000..b74e5a108d
--- /dev/null
+++ b/Ports/acpica-tools/patches/0001--Stop-compiler-warnings-on-dangling-pointer.patch
@@ -0,0 +1,25 @@
+From bf6a3c66f9f4a536ad7bab3eb7f149c7062de851 Mon Sep 17 00:00:00 2001
+From: Liav A <liavalb@gmail.com>
+Date: Fri, 27 May 2022 10:18:35 +0300
+Subject: [PATCH 1/2] Stop compiler warnings on dangling pointer
+
+---
+ source/components/utilities/utdebug.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/source/components/utilities/utdebug.c b/source/components/utilities/utdebug.c
+index f789e68..fd18f5c 100644
+--- a/source/components/utilities/utdebug.c
++++ b/source/components/utilities/utdebug.c
+@@ -182,7 +182,7 @@ void
+ AcpiUtInitStackPtrTrace (
+ void)
+ {
+- ACPI_SIZE CurrentSp;
++ static ACPI_SIZE CurrentSp;
+
+
+ AcpiGbl_EntryStackPointer = &CurrentSp;
+--
+2.36.0
+