ruby-changes:26034
From: naruse <ko1@a...>
Date: Sat, 1 Dec 2012 04:10:24 +0900 (JST)
Subject: [ruby-changes:26034] naruse:r38091 (trunk): suppress warnings: unused variables
naruse 2012-12-01 04:10:12 +0900 (Sat, 01 Dec 2012) New Revision: 38091 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38091 Log: suppress warnings: unused variables Modified files: trunk/test/dl/test_cfunc.rb trunk/test/dl/test_dl2.rb Index: test/dl/test_cfunc.rb =================================================================== --- test/dl/test_cfunc.rb (revision 38090) +++ test/dl/test_cfunc.rb (revision 38091) @@ -72,7 +72,7 @@ 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 Index: test/dl/test_dl2.rb =================================================================== --- test/dl/test_dl2.rb (revision 38090) +++ test/dl/test_dl2.rb (revision 38091) @@ -28,7 +28,7 @@ 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 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/