From 681730131d35c754490098f421f1da8f40445a97 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 26 Jan 2025 22:15:49 -0800 Subject: [PATCH] Ignore -fanalyzer-null-argument in pgtkterm.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * src/pgtkterm.c: Ignore -Wanalyzer-null-dereference. I don’t have time to look into all the diagnostics, but the ones I checked seemed to be false alarms with gcc -std=gnu23 on x86-64, and we are ignoring this diagnostic in other modules. This is GCC 14.2.1 20250110 (Red Hat 14.2.1-7). (cherry picked from commit 8d8272d02e38ee3624cd3f16767f3c60fb3383ea) --- src/pgtkterm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pgtkterm.c b/src/pgtkterm.c index 1d679f0cf57..1f468300deb 100644 --- a/src/pgtkterm.c +++ b/src/pgtkterm.c @@ -22,6 +22,11 @@ along with GNU Emacs. If not, see . */ interpretation of even the system includes. */ #include +/* Work around GCC bug 102671. */ +#if 10 <= __GNUC__ +# pragma GCC diagnostic ignored "-Wanalyzer-null-dereference" +#endif + #include #include #include -- 2.39.5