]> code.delx.au - gnu-emacs/commitdiff
Port --enable-gcc-warnings to clang 3.7.0
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 7 Jun 2016 23:18:02 +0000 (16:18 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 7 Jun 2016 23:18:21 +0000 (16:18 -0700)
* configure.ac: Add -Wno-tautological-compare to avoid bogus
warnings about 0 <= rlim.rlim_max.  Remove flags that no longer
seem to be needed, at least in Fedora 23 x86-64.

configure.ac

index 37a159f41172e61fe65bee9371d96546576be7ba..73fce2db4e7fec660b0eb6f23cc82a4c1ec605f4 100644 (file)
@@ -986,10 +986,8 @@ AS_IF([test $gl_gcc_warnings = no],
 
   # More things that clang is unduly picky about.
   if test $emacs_cv_clang = yes; then
-    gl_WARN_ADD([-Wno-format-extra-args])
+    gl_WARN_ADD([-Wno-tautological-compare])
     gl_WARN_ADD([-Wno-tautological-constant-out-of-range-compare])
-    gl_WARN_ADD([-Wno-unused-command-line-argument])
-    gl_WARN_ADD([-Wno-unused-value])
   fi
 
   # This causes too much noise in the MinGW build