diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-08-11 12:47:22 -0400 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-08-12 18:00:51 -0700 |
commit | c57c0df976ac0d00ca46cde76e5c53bb344613b8 (patch) | |
tree | d6debdada0ceb117ef7df7ae1630c2a92ced0158 /cflags.SH | |
parent | b5b6210a9764d431c3ac672d95f351856885b7fe (diff) | |
download | perl-c57c0df976ac0d00ca46cde76e5c53bb344613b8.tar.gz |
For older clang versions put back -Wno-unused-value.
Logical revert of b679cac0, but redone.
Apple versions only for now; situation on Linux side unknown.
Diffstat (limited to 'cflags.SH')
-rwxr-xr-x | cflags.SH | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -306,6 +306,17 @@ case "$gccversion" in ;; esac +# Older clang releases are not wise enough for -Wunused-value. +case "$gccversion" in +*"Apple LLVM "[34]*|*"Apple LLVM version "[34]*) + for f in -Wno-unused-value + do + echo "cflags.SH: Adding $f because clang version '$gccversion'" + warn="$warn $f" + done + ;; +esac + case "$cc" in *g++*) # Extra paranoia in case people have bad canned ccflags: |