]> git.eshelyaron.com Git - emacs.git/commitdiff
Port --enable-gcc-warnings to recent clang
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 9 Oct 2018 18:16:00 +0000 (11:16 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 9 Oct 2018 18:16:26 +0000 (11:16 -0700)
* configure.ac: Disable -Wnull-pointer-arithmetic if clang (Bug#32924).

configure.ac

index 6f3d7338c35b00e977cc8ba77ca7f315701366ac..df910280b43921130e72e6b7b19f4b0046a45838 100644 (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