aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2024-02-17 23:12:18 -0800
committerPaul Eggert2024-02-18 00:38:15 -0800
commitf8d27a8a1fd5bdc8e25569cc05a9298e186a8c63 (patch)
tree4bfbfa4b7ddf776c7c0b868eca34810c74257a44 /src
parentd80f1352d80938bb4ef61c5d74aa056902abd9b4 (diff)
downloademacs-f8d27a8a1fd5bdc8e25569cc05a9298e186a8c63.tar.gz
emacs-f8d27a8a1fd5bdc8e25569cc05a9298e186a8c63.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/ccl.c7
1 files changed, 1 insertions, 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/>. */
35#include "coding.h" 35#include "coding.h"
36#include "keyboard.h" 36#include "keyboard.h"
37 37
38/* Avoid GCC 12 bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105784>. */
39#if GNUC_PREREQ (12, 0, 0)
40# pragma GCC diagnostic ignored "-Wanalyzer-use-of-uninitialized-value"
41#endif
42
43/* Table of registered CCL programs. Each element is a vector of 38/* Table of registered CCL programs. Each element is a vector of
44 NAME, CCL_PROG, RESOLVEDP, and UPDATEDP, where NAME (symbol) is the 39 NAME, CCL_PROG, RESOLVEDP, and UPDATEDP, where NAME (symbol) is the
45 name of the program, CCL_PROG (vector) is the compiled code of the 40 name of the program, CCL_PROG (vector) is the compiled code of the
@@ -609,7 +604,7 @@ while (0)
609 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109579 604 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109579
610 which causes GCC to mistakenly complain about 605 which causes GCC to mistakenly complain about
611 popping the mapping stack. */ 606 popping the mapping stack. */
612#if GNUC_PREREQ (13, 0, 0) 607#if __GNUC__ == 13
613# pragma GCC diagnostic ignored "-Wanalyzer-out-of-bounds" 608# pragma GCC diagnostic ignored "-Wanalyzer-out-of-bounds"
614#endif 609#endif
615 610