Skip to content

Commit cf16868

Browse files
committed
test: suppress shadowing outer local variable warning
1 parent 4d13a5b commit cf16868

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/fiddle/helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@
9393
funcs=%w!sin sinf strcpy strncpy!
9494
expfile='dltest.exp'
9595
require 'tmpdir'
96-
Dir.mktmpdir do |dir|
96+
Dir.mktmpdir do |_dir|
9797
begin
98-
Dir.chdir dir
98+
Dir.chdir _dir
9999
%x!/usr/bin/ar x /usr/lib/libc.a #{cobjs.join(' ')}!
100100
%x!/usr/bin/ar x /usr/lib/libm.a #{mobjs.join(' ')}!
101101
%x!echo "#{funcs.join("\n")}\n" > #{expfile}!

0 commit comments

Comments
 (0)