summaryrefslogtreecommitdiff
path: root/cflags.SH
diff options
context:
space:
mode:
authorReini Urban <rurban@x-ray.at>2012-05-31 14:58:35 -0500
committerFather Chrysostomos <sprout@cpan.org>2012-06-08 21:55:54 -0700
commitd5db65c043a15d90a511bcd6b528dd7925d0ffa0 (patch)
tree096ff74c3d841c72de109ac2aa5c8c6e22222e59 /cflags.SH
parentc0b8aebd3285e94126140a78c9d5503be4f76b62 (diff)
downloadperl-d5db65c043a15d90a511bcd6b528dd7925d0ffa0.tar.gz
cflags: clang complains a lot about -Wunused-value which are not fixable
Diffstat (limited to 'cflags.SH')
-rwxr-xr-xcflags.SH4
1 files changed, 4 insertions, 0 deletions
diff --git a/cflags.SH b/cflags.SH
index f57cf2fc3e..ac03b85f1f 100755
--- 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