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

ruby-changes:63638

From: Sutou <ko1@a...>
Date: Wed, 18 Nov 2020 09:05:43 +0900 (JST)
Subject: [ruby-changes:63638] 5c7ef89db4 (master): [ruby/fiddle] test: suppress shadowing outer local variable warning

https://git.ruby-lang.org/ruby.git/commit/?id=5c7ef89db4

From 5c7ef89db4eb97b65ca1601babf76b9396ce75bc Mon Sep 17 00:00:00 2001
From: Sutou Kouhei <kou@c...>
Date: Tue, 17 Nov 2020 11:12:09 +0900
Subject: [ruby/fiddle] test: suppress shadowing outer local variable warning

https://github.com/ruby/fiddle/commit/cf168680a2

diff --git a/test/fiddle/helper.rb b/test/fiddle/helper.rb
index f5ccedd..13bd3ed 100644
--- a/test/fiddle/helper.rb
+++ b/test/fiddle/helper.rb
@@ -92,9 +92,9 @@ when /aix/ https://github.com/ruby/ruby/blob/trunk/test/fiddle/helper.rb#L92
     funcs=%w!sin sinf strcpy strncpy!
     expfile='dltest.exp'
     require 'tmpdir'
-    Dir.mktmpdir do |dir|
+    Dir.mktmpdir do |_dir|
       begin
-        Dir.chdir dir
+        Dir.chdir _dir
         %x!/usr/bin/ar x /usr/lib/libc.a #{cobjs.join(' ')}!
         %x!/usr/bin/ar x /usr/lib/libm.a #{mobjs.join(' ')}!
         %x!echo "#{funcs.join("\n")}\n" > #{expfile}!
-- 
cgit v0.10.2


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

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