aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compilers.rb
diff options
context:
space:
mode:
authorJack Nagel2013-02-17 22:54:43 -0600
committerJack Nagel2013-02-18 12:13:36 -0600
commitf037be514865a8dc141b7c870e7640939b5fa22a (patch)
treed8c8aa8211bbb55a82beed3da5ee67f1989cf804 /Library/Homebrew/compilers.rb
parent1a799f04e6af870c03aa02f2c3a9db6e0bd55bca (diff)
downloadbrew-f037be514865a8dc141b7c870e7640939b5fa22a.tar.bz2
Don't shadow outer local variables
Diffstat (limited to 'Library/Homebrew/compilers.rb')
-rw-r--r--Library/Homebrew/compilers.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb
index eaaf041b5..4742dcfb5 100644
--- a/Library/Homebrew/compilers.rb
+++ b/Library/Homebrew/compilers.rb
@@ -149,10 +149,10 @@ class CompilerSelector
so that we can update the formula accordingly. Thanks!
EOS
- viable = @compilers.reject { |cc| @f.fails_with? cc }
+ viable = @compilers.reject { |c| @f.fails_with? c }
unless viable.empty?
warning += "\nIf it fails you can use "
- options = viable.map { |cc| "--use-#{cc.name}" }
+ options = viable.map { |c| "--use-#{c.name}" }
warning += "#{options*' or '} to try a different compiler."
end