Actions
Bug #4134
closedassigned but unused variable
Bug #4134:
assigned but unused variable
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3dev (2010-12-08 trunk 30142) [i686-linux]
Backport:
Description
=begin
テストを-vを付けて実行するとassigned but unused variableの警告が大量に出るのですが、
ライブラリ側で出ていた警告のうち消せそうなものを消してみました。
(残りは、assigned but unused variableの警告は出るがERBテンプレートで参照しているもの)
Index: ext/dl/lib/dl/struct.rb¶
--- ext/dl/lib/dl/struct.rb (リビジョン 30142)
+++ ext/dl/lib/dl/struct.rb (作業コピー)
@@ -98,7 +98,6 @@
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])
Index: ext/dl/lib/dl/import.rb¶
--- ext/dl/lib/dl/import.rb (リビジョン 30142)
+++ ext/dl/lib/dl/import.rb (作業コピー)
@@ -96,7 +96,6 @@
def parse_bind_options(opts)
h = {}
-
prekey = nil while( opt = opts.shift() ) case opt when :stdcall, :cdecl
=end
Updated by naruse (Yui NARUSE) almost 15 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
This issue was solved with changeset r30146.
Kouhei, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
Actions