From 5c37baa5e7b08748a1e7b13185f8f6089f6fb604 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 6 May 2014 19:29:18 -0500 Subject: [PATCH] Remove nested conditional --- Library/ENV/4.3/cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index 2f5094c55a..cec4360119 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'