summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2023-05-14 18:51:23 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2023-05-14 19:28:11 -0700
commit0b9677a192bcaa7e073347f4f4f19f2336531de8 (patch)
tree7d10d3851b7726f1001e2f49e2041248992d6b3a
parent7166737b5c928c82aedaa4946d6fb9cc50fae336 (diff)
downloademacs-0b9677a192bcaa7e073347f4f4f19f2336531de8.tar.gz
Work around GCC bug 109579 in ccl.c
* src/ccl.c (POP_MAPPING_STACK): Ignore -Wanalyzer-out-of-bounds.
-rw-r--r--src/ccl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ccl.c b/src/ccl.c
index 6e780ef9f0c..ce9abd59493 100644
--- 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 \
{ \