emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master f8d27a8a1fd 1/4: Ignore fewer GCC -fanalyzer diagnostics in ccl.c


From: Paul Eggert
Subject: master f8d27a8a1fd 1/4: Ignore fewer GCC -fanalyzer diagnostics in ccl.c
Date: Sun, 18 Feb 2024 03:38:24 -0500 (EST)

branch: master
commit f8d27a8a1fd5bdc8e25569cc05a9298e186a8c63
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>

    Ignore fewer GCC -fanalyzer diagnostics in ccl.c
    
    * src/ccl.c: Do not ignore -Wanalyzer-use-of-uninitialized-value,
    as that bug has been fixed in GCC.  Ignore
    -Wanalyzer-out-of-bounds only if GCC 13, as the bug will
    reportedly be fixed when GCC 14 comes out.
---
 src/ccl.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/ccl.c b/src/ccl.c
index a3a03a5b7b1..8bb8a78fe3d 100644
--- a/src/ccl.c
+++ b/src/ccl.c
@@ -35,11 +35,6 @@ along with GNU Emacs.  If not, see 
<https://www.gnu.org/licenses/>.  */
 #include "coding.h"
 #include "keyboard.h"
 
-/* Avoid GCC 12 bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105784>.  */
-#if GNUC_PREREQ (12, 0, 0)
-# pragma GCC diagnostic ignored "-Wanalyzer-use-of-uninitialized-value"
-#endif
-
 /* Table of registered CCL programs.  Each element is a vector of
    NAME, CCL_PROG, RESOLVEDP, and UPDATEDP, where NAME (symbol) is the
    name of the program, CCL_PROG (vector) is the compiled code of the
@@ -609,7 +604,7 @@ while (0)
    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)
+#if __GNUC__ == 13
 # pragma GCC diagnostic ignored "-Wanalyzer-out-of-bounds"
 #endif
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]