summaryrefslogtreecommitdiff
path: root/test/dl/test_dl2.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-30 19:10:12 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-30 19:10:12 +0000
commit9207474f04b9aa6e60f1d0799a4afbd908e9dac7 (patch)
treea313bd1bbb71ec6cea68f025835669f8daaa0526 /test/dl/test_dl2.rb
parent8539a917ddf13e48237bf9a10eb8b660dbba4628 (diff)
suppress warnings: unused variables
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/dl/test_dl2.rb')
-rw-r--r--test/dl/test_dl2.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dl/test_dl2.rb b/test/dl/test_dl2.rb
index 8f4275fb65..88ef0869b1 100644
--- a/test/dl/test_dl2.rb
+++ b/test/dl/test_dl2.rb
@@ -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