From: Paul Eggert Date: Tue, 7 Jun 2016 23:18:02 +0000 (-0700) Subject: Port --enable-gcc-warnings to clang 3.7.0 X-Git-Tag: emacs-26.0.90~1842^2~8 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2f9d547329e8459965692383c5a95d41b7035726;p=emacs.git Port --enable-gcc-warnings to clang 3.7.0 * 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. --- diff --git a/configure.ac b/configure.ac index 37a159f4117..73fce2db4e7 100644 --- a/configure.ac +++ b/configure.ac @@ -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