suppress warnings: unused variables

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2012-11-30 19:10:12 +00:00
parent 8539a917dd
commit 9207474f04
2 changed files with 3 additions and 3 deletions

View File

@ -72,7 +72,7 @@ module DL
Thread.new do
f = Function.new(@cf, [TYPE_VOIDP, TYPE_VOIDP])
assert_nil CFunc.last_error
str = f.call("000", "123")
f.call("000", "123")
assert_not_nil CFunc.last_error
end.join
end

View File

@ -28,7 +28,7 @@ class TestDL < TestBase
assert_equal ptr_id, ptr.to_i
cfunc = CFunc.new(@libc['strcpy'], TYPE_VOIDP, 'strcpy')
x = cfunc.call([ptr_id,str].pack("l!p").unpack("l!*"))
cfunc.call([ptr_id,str].pack("l!p").unpack("l!*"))
assert_equal("abc\0", ptr[0,4])
DL.free ptr_id
end
@ -51,7 +51,7 @@ class TestDL < TestBase
assert_equal ptr_id, ptr.to_i
cfunc = CFunc.new(@libc['strcpy'], TYPE_VOIDP, 'strcpy')
x = cfunc.call([ptr_id,str].pack("l!p").unpack("l!*"))
cfunc.call([ptr_id,str].pack("l!p").unpack("l!*"))
assert_equal("abc\0", ptr[0,4])
DL.free ptr_id
end