From 4411d98c47576d5d47ea17269617b7c5a0f04f3c Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 6 Jan 2024 13:39:57 -0800 Subject: [PATCH] Pacify Ubuntu GCC 13.2 in x_get_local_selection * src/xselect.c: Ignore -Wanalyzer-null-dereference, to work around GCC bug 102671. --- src/xselect.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/xselect.c b/src/xselect.c index bb82798bb62..fd0f06eeed9 100644 --- a/src/xselect.c +++ b/src/xselect.c @@ -19,6 +19,12 @@ along with GNU Emacs. If not, see . */ /* Rewritten by jwz */ #include + +/* Work around GCC bug 102671. */ +#if 10 <= __GNUC__ +# pragma GCC diagnostic ignored "-Wanalyzer-null-dereference" +#endif + #include #ifdef HAVE_SYS_TYPES_H -- 2.39.2