ruby-changes:46346
From: naruse <ko1@a...>
Date: Mon, 24 Apr 2017 01:19:27 +0900 (JST)
Subject: [ruby-changes:46346] naruse:r58460 (trunk): suppress warning: shadowing outer local variable
naruse 2017-04-24 01:19:22 +0900 (Mon, 24 Apr 2017) New Revision: 58460 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58460 Log: suppress warning: shadowing outer local variable Modified files: trunk/template/configure-ext.mk.tmpl Index: template/configure-ext.mk.tmpl =================================================================== --- template/configure-ext.mk.tmpl (revision 58459) +++ template/configure-ext.mk.tmpl (revision 58460) @@ -17,8 +17,8 @@ exts = {} https://github.com/ruby/ruby/blob/trunk/template/configure-ext.mk.tmpl#L17 [ ["exts", "ext", "--extstatic $(EXTSTATIC)"], ["gems", "gems", "--no-extstatic"], -].each do |t, dir, opt| - exts[t] = [opt, Dir.glob("#{srcdir}/#{dir}/*/").map {|n| n[(srcdir.size+1)..-2]}] +].each do |t, d, o| + exts[t] = [o, Dir.glob("#{srcdir}/#{d}/*/").map {|n| n[(srcdir.size+1)..-2]}] end %> MINIRUBY = <%=miniruby%> @@ -30,12 +30,12 @@ all: exts gems https://github.com/ruby/ruby/blob/trunk/template/configure-ext.mk.tmpl#L30 exts: gems: -% exts.each do |t, (opt, dirs)| -% dirs.each do |dir| -<%=t%>: <%=dir%>/exts.mk -<%=dir%>/exts.mk: FORCE +% exts.each do |t, (o, dirs)| +% dirs.each do |d| +<%=t%>: <%=d%>/exts.mk +<%=d%>/exts.mk: FORCE $(Q)$(MINIRUBY) $(srcdir)/ext/extmk.rb --make='$(MAKE)' \ - --command-output=$@ $(EXTMK_ARGS) <%=opt%> \ + --command-output=$@ $(EXTMK_ARGS) <%=o%> \ -- configure $(@D) % end % end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/