]> git.eshelyaron.com Git - emacs.git/commitdiff
Pacify Ubuntu GCC 13.2 in x_get_local_selection
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 6 Jan 2024 21:39:57 +0000 (13:39 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 6 Jan 2024 21:40:38 +0000 (13:40 -0800)
* src/xselect.c: Ignore -Wanalyzer-null-dereference,
to work around GCC bug 102671.

src/xselect.c

index bb82798bb626abe43abb53db71532b4f0f7c6ef8..fd0f06eeed9962cc4ec322cfd72f7a98e2e53a4c 100644 (file)
@@ -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