[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 13dac6f3e9 05/11: Pacify GCC 12 false positive in ccl.c
From: |
Paul Eggert |
Subject: |
master 13dac6f3e9 05/11: Pacify GCC 12 false positive in ccl.c |
Date: |
Tue, 31 May 2022 04:26:59 -0400 (EDT) |
branch: master
commit 13dac6f3e95f951d7174d727cc88c7e7bf24ac8c
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>
Pacify GCC 12 false positive in ccl.c
* src/ccl.c: Suppress -Wanalyzer-use-of-uninitialized-value
in GCC 12 or later.
---
src/ccl.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/ccl.c b/src/ccl.c
index a3121f7278..1a4f73500a 100644
--- a/src/ccl.c
+++ b/src/ccl.c
@@ -35,6 +35,11 @@ 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
- master updated (d94890404e -> a55a0483c9), Paul Eggert, 2022/05/31
- master 1f6973241a 07/11: Pacify GCC 12 in Fx_show_tip, Paul Eggert, 2022/05/31
- master a1c19dfca4 01/11: Pacify GCC 12 -Wanalyzer-use-of-uninitialized-value, Paul Eggert, 2022/05/31
- master c4da5db04b 08/11: Pacify GCC 12 in Fmove_overlay, Paul Eggert, 2022/05/31
- master 82c05c034e 03/11: Avoid undefined behavior in detect_coding routines, Paul Eggert, 2022/05/31
- master 877be9098e 02/11: Pacify GCC 12 -fanalyzer in x_popup_menu_1, Paul Eggert, 2022/05/31
- master 0614e0f3e9 10/11: Pacify GCC 12 in dump_queue_enqueue, Paul Eggert, 2022/05/31
- master 13dac6f3e9 05/11: Pacify GCC 12 false positive in ccl.c,
Paul Eggert <=
- master 569d4c7ad6 09/11: Be more robust if doc file is corrupted, Paul Eggert, 2022/05/31
- master a55a0483c9 11/11: Pacify GCC 12 in x_get_current_wm_state, Paul Eggert, 2022/05/31
- master 30966a6e67 04/11: Simplify CHAR_TABLE_REF_ASCII, Paul Eggert, 2022/05/31
- master 920f1e68b8 06/11: Pacify GCC 12 in xrdb.c, Paul Eggert, 2022/05/31