b8d0346
diff -Naur acpica-unix2-20211217/source/components/utilities/utdebug.c acpica-unix2-20211217.orig/source/components/utilities/utdebug.c
b8d0346
--- acpica-unix2-20211217/source/components/utilities/utdebug.c	2022-03-15 17:05:07.992387565 -0600
b8d0346
+++ acpica-unix2-20211217.orig/source/components/utilities/utdebug.c	2021-12-17 10:48:16.000000000 -0700
b8d0346
@@ -58,6 +58,10 @@
b8d0346
 static const char           *AcpiGbl_FunctionExitPrefix  = "----Exit-";
b8d0346
 
b8d0346
 
b8d0346
+#if defined(__GNUC__) && (__GNUC__ > 11)
b8d0346
+#pragma GCC diagnostic push
b8d0346
+#pragma GCC diagnostic ignored "-Wdangling-pointer"
b8d0346
+#endif
b8d0346
 /*******************************************************************************
b8d0346
  *
b8d0346
  * FUNCTION:    AcpiUtInitStackPtrTrace
b8d0346
@@ -114,6 +110,9 @@
b8d0346
         AcpiGbl_DeepestNesting = AcpiGbl_NestingLevel;
b8d0346
     }
b8d0346
 }
b8d0346
+#if defined(__GNUC__) && (__GNUC__ > 11)
b8d0346
+#pragma GCC diagnostic pop
b8d0346
+#endif
b8d0346
 
b8d0346
 
b8d0346
 /*******************************************************************************