]> git.eshelyaron.com Git - emacs.git/commitdiff
Do not ignore -Wanalyzer-allocation-size in GCC 14
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 18 Feb 2024 07:48:20 +0000 (23:48 -0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 28 Feb 2024 17:35:47 +0000 (18:35 +0100)
* 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.

(cherry picked from commit 659770fdf535ca683a97d965d2e4ed0f9f321145)

src/lisp.h

index bf96bfd39f7d6810ae9bfd1c0a4c09a8e06680c2..79a6a054b819e8d21da8ec3a1d7765bcba37bb41 100644 (file)
@@ -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