]> git.eshelyaron.com Git - emacs.git/commitdiff
Work around GCC bug 109579 in ccl.c
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 May 2023 01:51:23 +0000 (18:51 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 May 2023 02:28:11 +0000 (19:28 -0700)
* src/ccl.c (POP_MAPPING_STACK):
Ignore -Wanalyzer-out-of-bounds.

src/ccl.c

index 6e780ef9f0c9dadbe96fa7601a06f4b699e38fb8..ce9abd59493b967dd6c9ff5a4a54c750e026ee54 100644 (file)
--- a/src/ccl.c
+++ b/src/ccl.c
@@ -605,6 +605,14 @@ do                                                 \
   }                                                    \
 while (0)
 
+/* Work around GCC bug 109579
+   https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109579
+   which causes GCC to mistakenly complain about
+   popping the mapping stack.  */
+#if GNUC_PREREQ (13, 0, 0)
+# pragma GCC diagnostic ignored "-Wanalyzer-out-of-bounds"
+#endif
+
 #define POP_MAPPING_STACK(restlen, orig)               \
 do                                                     \
   {                                                    \