>From 7f1beabfcdcb58d90aa78db22b9a123faf298749 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 9 Oct 2018 11:16:00 -0700 Subject: [PATCH] Port --enable-gcc-warnings to recent clang * configure.ac: Disable -Wnull-pointer-arithmetic if clang (Bug#32924). --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 6f3d7338c3..df910280b4 100644 --- a/configure.ac +++ b/configure.ac @@ -1019,9 +1019,10 @@ AC_DEFUN gl_WARN_ADD([-Wno-unused-parameter]) # Too many warnings for now gl_WARN_ADD([-Wno-format-nonliteral]) - # clang is unduly picky about braces. + # clang is unduly picky about some things. if test "$emacs_cv_clang" = yes; then gl_WARN_ADD([-Wno-missing-braces]) + gl_WARN_ADD([-Wno-null-pointer-arithmetic]) fi # This causes too much noise in the MinGW build -- 2.17.1