cflags: clang complains a lot about -Wunused-value which are not fixable
authorReini Urban <rurban@x-ray.at>
Thu, 31 May 2012 19:58:35 +0000 (14:58 -0500)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 9 Jun 2012 04:55:54 +0000 (21:55 -0700)
cflags.SH

index f57cf2f..ac03b85 100755 (executable)
--- a/cflags.SH
+++ b/cflags.SH
@@ -337,6 +337,10 @@ for file do
     cppflags=`echo $cppflags|sed 's/-Wdeclaration-after-statement/ /'`
 
     case "$cc" in
+    *clang)
+      # clang complains a lot about -Wunused-value which are not fixable
+      warn="$warn -Wno-unused-value"
+      ;;
     *g++*)
       # Without -Wno-unused-variable g++ 4.x compiles are rather unwatchable
       # because of all the warnings about Perl___notused, and g++ doesn't do