]> git.pld-linux.org Git - packages/acpica.git/blobdiff - acpica-dangling-ptr.patch
- updated to 20220331 + current Fedora patch set; acpinames is gone
[packages/acpica.git] / acpica-dangling-ptr.patch
diff --git a/acpica-dangling-ptr.patch b/acpica-dangling-ptr.patch
new file mode 100644 (file)
index 0000000..582fb9e
--- /dev/null
@@ -0,0 +1,24 @@
+diff -Naur acpica-unix2-20211217/source/components/utilities/utdebug.c acpica-unix2-20211217.orig/source/components/utilities/utdebug.c
+--- acpica-unix2-20211217/source/components/utilities/utdebug.c        2022-03-15 17:05:07.992387565 -0600
++++ acpica-unix2-20211217.orig/source/components/utilities/utdebug.c   2021-12-17 10:48:16.000000000 -0700
+@@ -58,6 +58,10 @@
+ static const char           *AcpiGbl_FunctionExitPrefix  = "----Exit-";
++#if defined(__GNUC__) && (__GNUC__ > 11)
++#pragma GCC diagnostic push
++#pragma GCC diagnostic ignored "-Wdangling-pointer"
++#endif
+ /*******************************************************************************
+  *
+  * FUNCTION:    AcpiUtInitStackPtrTrace
+@@ -114,6 +110,9 @@
+         AcpiGbl_DeepestNesting = AcpiGbl_NestingLevel;
+     }
+ }
++#if defined(__GNUC__) && (__GNUC__ > 11)
++#pragma GCC diagnostic pop
++#endif
+ /*******************************************************************************
This page took 0.484529 seconds and 4 git commands to generate.