1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/fiddle] test: suppress shadowing outer local variable warning

https://github.com/ruby/fiddle/commit/cf168680a2
This commit is contained in:
Sutou Kouhei 2020-11-17 11:12:09 +09:00 committed by Sutou Kouhei
parent ceccc16589
commit 5c7ef89db4
Notes: git 2020-11-18 09:05:43 +09:00

View file

@ -92,9 +92,9 @@ when /aix/
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}!