emacs-diffs
[Top][All Lists]
Advanced

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

emacs-28 0d374b1: Work around GCC bug 102671


From: Paul Eggert
Subject: emacs-28 0d374b1: Work around GCC bug 102671
Date: Mon, 11 Oct 2021 12:25:01 -0400 (EDT)

branch: emacs-28
commit 0d374b1b835c5b1edfae16d68da73ff47e75e0e2
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>

    Work around GCC bug 102671
    
    This is for --enable-gcc-warnings on GCC 11.2.1.
    * src/window.c, src/timefns.c: Disable -Wanalyzer-null-dereference.
---
 src/timefns.c | 5 +++++
 src/window.c  | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/src/timefns.c b/src/timefns.c
index f0e2e97..a9921cd 100644
--- a/src/timefns.c
+++ b/src/timefns.c
@@ -19,6 +19,11 @@ along with GNU Emacs.  If not, see 
<https://www.gnu.org/licenses/>.  */
 
 #include <config.h>
 
+/* Work around GCC bug 102671.  */
+#if 10 <= __GNUC__
+# pragma GCC diagnostic ignored "-Wanalyzer-null-dereference"
+#endif
+
 #include "systime.h"
 
 #include "blockinput.h"
diff --git a/src/window.c b/src/window.c
index a6e8ee0..ec3c941 100644
--- a/src/window.c
+++ b/src/window.c
@@ -20,6 +20,11 @@ along with GNU Emacs.  If not, see 
<https://www.gnu.org/licenses/>.  */
 
 #include <config.h>
 
+/* Work around GCC bug 102671.  */
+#if 10 <= __GNUC__
+# pragma GCC diagnostic ignored "-Wanalyzer-null-dereference"
+#endif
+
 #include "lisp.h"
 #include "buffer.h"
 #include "keyboard.h"



reply via email to

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