diff options
| author | Jack Nagel | 2014-05-06 19:29:18 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-05-06 19:31:47 -0500 |
| commit | 1141cd764d677cd81eaea842fc838c0253a6d0bc (patch) | |
| tree | 0d88da7f3d391a321f146d8c6e0e21bb468ee839 /Library/ENV/4.3 | |
| parent | 93fa61187771f6b90690f82dde7ea6444111e1fc (diff) | |
| download | homebrew-1141cd764d677cd81eaea842fc838c0253a6d0bc.tar.bz2 | |
Remove nested conditional
Diffstat (limited to 'Library/ENV/4.3')
| -rwxr-xr-x | Library/ENV/4.3/cc | 4 |
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' |
