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

ruby-changes:43753

From: nobu <ko1@a...>
Date: Sun, 7 Aug 2016 19:06:02 +0900 (JST)
Subject: [ruby-changes:43753] nobu:r55826 (trunk): extmk.rb: suppress a warning

nobu	2016-08-07 19:05:57 +0900 (Sun, 07 Aug 2016)

  New Revision: 55826

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

  Log:
    extmk.rb: suppress a warning
    
    * ext/extmk.rb: get rid of shadowing outer local variable.

  Modified files:
    trunk/ext/extmk.rb
Index: ext/extmk.rb
===================================================================
--- ext/extmk.rb	(revision 55825)
+++ ext/extmk.rb	(revision 55826)
@@ -773,10 +773,10 @@ if $configure_only and $command_output https://github.com/ruby/ruby/blob/trunk/ext/extmk.rb#L773
     mf.puts "\n""note:\n"
     unless fails.empty?
       mf.puts %Q<\t@echo "*** Following extensions failed to configure:">
-      fails.each do |d, n, e|
+      fails.each do |d, n, err|
         d = "#{d}:#{n}:"
-        if e
-          d << " " << e
+        if err
+          d << " " << err
         end
         mf.puts %Q<\t@echo "#{d}">
       end

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

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