]> git.eshelyaron.com Git - emacs.git/commitdiff
Port --enable-gcc-warnings to clang 3.9.1
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 19 May 2017 03:27:11 +0000 (20:27 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 19 May 2017 03:42:34 +0000 (20:42 -0700)
* configure.ac (WERROR_CFLAGS): Omit -Wdouble-promotion if clang.
Problem reported by Philipp Stephani in:
http://lists.gnu.org/archive/html/emacs-devel/2017-05/msg00495.html

configure.ac

index 34b75a768bf84c28925f7589630664e9c18b9538..03542a6b1c30951c5f38fc0cd5a1ac7d7200713d 100644 (file)
@@ -963,6 +963,7 @@ AS_IF([test $gl_gcc_warnings = no],
 
   if test $emacs_cv_clang = yes; then
     nw="$nw -Wcast-align"
+    nw="$nw -Wdouble-promotion"
   fi
 
   # This causes too much noise in the MinGW build