emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 4411d98c475 2/2: Pacify Ubuntu GCC 13.2 in x_get_local_selection


From: Paul Eggert
Subject: master 4411d98c475 2/2: Pacify Ubuntu GCC 13.2 in x_get_local_selection
Date: Sat, 6 Jan 2024 16:40:45 -0500 (EST)

branch: master
commit 4411d98c47576d5d47ea17269617b7c5a0f04f3c
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>

    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 
<https://www.gnu.org/licenses/>.  */
 /* Rewritten by jwz */
 
 #include <config.h>
+
+/* Work around GCC bug 102671.  */
+#if 10 <= __GNUC__
+# pragma GCC diagnostic ignored "-Wanalyzer-null-dereference"
+#endif
+
 #include <limits.h>
 
 #ifdef HAVE_SYS_TYPES_H



reply via email to

[Prev in Thread] Current Thread [Next in Thread]