mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/dl/lib/dl/struct.rb: clean a warning: assigned but unused
variable. patched by Kouhei Yanagita. [ruby-dev:42722] * ext/dl/lib/dl/import.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
af67081446
commit
b2ea6df3b5
3 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
Wed Dec 8 21:38:40 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* ext/dl/lib/dl/struct.rb: clean a warning: assigned but unused
|
||||
variable. patched by Kouhei Yanagita. [ruby-dev:42722]
|
||||
|
||||
* ext/dl/lib/dl/import.rb: ditto.
|
||||
|
||||
Wed Dec 8 21:36:16 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* parse.y (shadowing_lvar_gen): fix line number. [ruby-dev:42718]
|
||||
|
|
|
@ -96,7 +96,6 @@ module DL
|
|||
|
||||
def parse_bind_options(opts)
|
||||
h = {}
|
||||
prekey = nil
|
||||
while( opt = opts.shift() )
|
||||
case opt
|
||||
when :stdcall, :cdecl
|
||||
|
|
|
@ -98,7 +98,6 @@ module DL
|
|||
align = ALIGN_MAP[t]
|
||||
end
|
||||
offset = PackInfo.align(orig_offset, align)
|
||||
size = offset - orig_offset
|
||||
@offset[i] = offset
|
||||
if( t.is_a?(Array) )
|
||||
offset += (SIZE_MAP[t[0]] * t[1])
|
||||
|
|
Loading…
Add table
Reference in a new issue