From: Paul Eggert Date: Tue, 9 Oct 2018 18:16:00 +0000 (-0700) Subject: Port --enable-gcc-warnings to recent clang X-Git-Tag: emacs-27.0.90~4320 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7f1beabfcdcb58d90aa78db22b9a123faf298749;p=emacs.git Port --enable-gcc-warnings to recent clang * configure.ac: Disable -Wnull-pointer-arithmetic if clang (Bug#32924). --- diff --git a/configure.ac b/configure.ac index 6f3d7338c35..df910280b43 100644 --- a/configure.ac +++ b/configure.ac @@ -1019,9 +1019,10 @@ AS_IF([test $gl_gcc_warnings = no], 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