Port --enable-gcc-warnings to recent clang

* configure.ac: Disable -Wnull-pointer-arithmetic if clang (Bug#32924).
This commit is contained in:
Paul Eggert 2018-10-09 11:16:00 -07:00
parent 1f88943924
commit 7f1beabfcd

View file

@ -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