summaryrefslogtreecommitdiff
path: root/src/timefns.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2021-10-11 09:23:47 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2021-10-11 09:24:56 -0700
commit0d374b1b835c5b1edfae16d68da73ff47e75e0e2 (patch)
tree55d816a9ebebd70caeeb6f6ed67b540d5b4fce1d /src/timefns.c
parentac066088780d473f883e2afe8d178e2bf2c964fd (diff)
downloademacs-0d374b1b835c5b1edfae16d68da73ff47e75e0e2.tar.gz
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.
Diffstat (limited to 'src/timefns.c')
-rw-r--r--src/timefns.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/timefns.c b/src/timefns.c
index f0e2e97f555..a9921cdc108 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"