diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-06-18 08:27:54 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2014-06-18 14:14:27 -0400 |
commit | b679cac092b8bd45dca623880f5a2032cf26353f (patch) | |
tree | 4c8708e646e158586338b84d8fe2ab84a3fb87c2 /cflags.SH | |
parent | 263fdd5bf07615c6d56214ee4faeb799f047e829 (diff) | |
download | perl-b679cac092b8bd45dca623880f5a2032cf26353f.tar.gz |
Looks like the core is now -Wunused-value clean with clang.
Another possibility is that clang has become smarter,
and that needs to be made dependent on clang version.
But for now, let's opt for simplicity and less logic.
Diffstat (limited to 'cflags.SH')
-rwxr-xr-x | cflags.SH | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -250,7 +250,6 @@ done # case "$ccflags$warn" in *-Wall*) - is_clang=undef case "$cc" in *g++*) # Without -Wno-unused-variable g++ 4.x compiles are rather unwatchable @@ -271,25 +270,6 @@ case "$ccflags$warn" in esac done ;; - *clang*) is_clang=define ;; - *) # clang may not be called clang, it may be called cc. - case "`$cc -v 2>&1`" in - *clang*) is_clang=define ;; - esac ;; - esac - - case "$is_clang" in - define) - for f in -Wno-unused-value - do - case "$warn" in - *"$f"*) ;; - *) - echo "cflags.SH: Adding $f because of clang." - warn="$warn $f" ;; - esac - done - ;; esac ;; esac |