aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-05-06 19:29:18 -0500
committerJack Nagel2014-05-06 19:31:47 -0500
commit5c37baa5e7b08748a1e7b13185f8f6089f6fb604 (patch)
tree42f42ebe86d22de03cb54929f57e6a6150c22fc8 /Library
parent0418865d5653d8fbc21d058e58ce90fb1979c1ad (diff)
downloadbrew-5c37baa5e7b08748a1e7b13185f8f6089f6fb604.tar.bz2
Remove nested conditional
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/ENV/4.3/cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc
index 2f5094c55..cec436011 100755
--- a/Library/ENV/4.3/cc
+++ b/Library/ENV/4.3/cc
@@ -160,8 +160,10 @@ class Cmd
'-frerun-cse-after-loop', '-frerun-loop-opt', '-fcse-follow-jumps'
# clang doesn't support these flags
args << arg if not tool =~ /^clang/
+ when /^-W[alp],/, /^-Wno-/
+ args << arg
when /^-W.*/
- args << arg if arg =~ /^-W[alp],/ or arg =~ /^-Wno-/
+ # prune warnings
when '-macosx_version_min', '-dylib_install_name'
args << "-Wl,#{arg},#{enum.next}"
when '-multiply_definedsuppress'