Port --enable-gcc-warnings to recent clang
* configure.ac: Disable -Wnull-pointer-arithmetic if clang (Bug#32924).
This commit is contained in:
parent
1f88943924
commit
7f1beabfcd
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue