From: Paul Eggert Date: Tue, 31 May 2022 08:19:32 +0000 (-0700) Subject: Pacify GCC 12 false positive in ccl.c X-Git-Tag: emacs-29.0.90~1910^2~319^2~6 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=13dac6f3e95f951d7174d727cc88c7e7bf24ac8c;p=emacs.git Pacify GCC 12 false positive in ccl.c * src/ccl.c: Suppress -Wanalyzer-use-of-uninitialized-value in GCC 12 or later. --- diff --git a/src/ccl.c b/src/ccl.c index a3121f72782..1a4f73500a3 100644 --- a/src/ccl.c +++ b/src/ccl.c @@ -35,6 +35,11 @@ along with GNU Emacs. If not, see . */ #include "coding.h" #include "keyboard.h" +/* Avoid GCC 12 bug . */ +#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