[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 659770fdf53 3/4: Do not ignore -Wanalyzer-allocation-size in GCC
From: |
Paul Eggert |
Subject: |
master 659770fdf53 3/4: Do not ignore -Wanalyzer-allocation-size in GCC 14 |
Date: |
Sun, 18 Feb 2024 03:38:24 -0500 (EST) |
branch: master
commit 659770fdf535ca683a97d965d2e4ed0f9f321145
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>
Do not ignore -Wanalyzer-allocation-size in GCC 14
* src/lisp.h (SAFE_ALLOCA_LISP_EXTRA): Use pragma to ignore the
warning only in GCC 13, as the GCC developers say GCC bug 109577
is fixed in GCC 14.
---
src/lisp.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lisp.h b/src/lisp.h
index bf96bfd39f7..79a6a054b81 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -5525,7 +5525,7 @@ safe_free_unbind_to (specpdl_ref count, specpdl_ref
sa_count, Lisp_Object val)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109577
which causes GCC to mistakenly complain about the
memory allocation in SAFE_ALLOCA_LISP_EXTRA. */
-#if GNUC_PREREQ (13, 0, 0)
+#if GNUC_PREREQ (13, 0, 0) && !GNUC_PREREQ (14, 0, 0)
# pragma GCC diagnostic ignored "-Wanalyzer-allocation-size"
#endif