]> git.eshelyaron.com Git - emacs.git/commitdiff
Work around GCC bug 102671
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 11 Oct 2021 16:23:47 +0000 (09:23 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 11 Oct 2021 16:24:56 +0000 (09:24 -0700)
This is for --enable-gcc-warnings on GCC 11.2.1.
* src/window.c, src/timefns.c: Disable -Wanalyzer-null-dereference.

src/timefns.c
src/window.c

index f0e2e97f5553b3062bb9f67a3ee9afbed768ee75..a9921cdc108e9c683853607da39c599866855fcc 100644 (file)
@@ -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"
index a6e8ee0d5349c0365613442714a45f8321ef1836..ec3c941c3bfdf5b689e32b72a17dcc69509d1e52 100644 (file)
@@ -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"