[前][次][番号順一覧][スレッド一覧]

ruby-changes:45723

From: naruse <ko1@a...>
Date: Tue, 7 Mar 2017 14:19:04 +0900 (JST)
Subject: [ruby-changes:45723] naruse:r57796 (trunk): suppress warning: shadowing outer local variable - e

naruse	2017-03-07 14:19:00 +0900 (Tue, 07 Mar 2017)

  New Revision: 57796

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57796

  Log:
    suppress warning: shadowing outer local variable - e

  Modified files:
    trunk/ext/extmk.rb
Index: ext/extmk.rb
===================================================================
--- ext/extmk.rb	(revision 57795)
+++ ext/extmk.rb	(revision 57796)
@@ -723,8 +723,8 @@ begin https://github.com/ruby/ruby/blob/trunk/ext/extmk.rb#L723
       fails.each do |d, n, err|
         d = "#{d}:#{n}:"
         if err
-          err.scan(/.+/) do |e|
-            mf.puts %Q<\t@echo "#{d} #{e.gsub(/["`$^]/, '\\\\\\&')}">
+          err.scan(/.+/) do |ee|
+            mf.puts %Q<\t@echo "#{d} #{ee.gsub(/["`$^]/, '\\\\\\&')}">
           end
         else
           mf.puts %Q<\t@echo "#{d}">

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]