This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0b8aeb
)
cflags: clang complains a lot about -Wunused-value which are not fixable
author
Reini Urban
<rurban@x-ray.at>
Thu, 31 May 2012 19:58:35 +0000
(14:58 -0500)
committer
Father Chrysostomos
<sprout@cpan.org>
Sat, 9 Jun 2012 04:55:54 +0000
(21:55 -0700)
cflags.SH
patch
|
blob
|
blame
|
history
diff --git
a/cflags.SH
b/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