From 2f9d547329e8459965692383c5a95d41b7035726 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 7 Jun 2016 16:18:02 -0700 Subject: [PATCH] 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. --- configure.ac | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 -- 2.11.4.GIT