ruby-changes:64116
From: Yusuke <ko1@a...>
Date: Sat, 12 Dec 2020 23:12:49 +0900 (JST)
Subject: [ruby-changes:64116] 248f1ef282 (master): tool/mk_builtin_loader.rb: prevent "assigned but unused variable"
https://git.ruby-lang.org/ruby.git/commit/?id=248f1ef282 From 248f1ef2821325987b7525fc6c839145d66c65e4 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Sat, 12 Dec 2020 23:09:11 +0900 Subject: tool/mk_builtin_loader.rb: prevent "assigned but unused variable" diff --git a/tool/mk_builtin_loader.rb b/tool/mk_builtin_loader.rb index fd80850..17f0d99 100644 --- a/tool/mk_builtin_loader.rb +++ b/tool/mk_builtin_loader.rb @@ -52,7 +52,7 @@ def make_cfunc_name inlines, name, lineno https://github.com/ruby/ruby/blob/trunk/tool/mk_builtin_loader.rb#L52 end def collect_locals tree - type, name, (line, cols) = tree + _type, name, (line, _cols) = tree if locals = LOCALS_DB[[name, line]] locals else @@ -65,7 +65,7 @@ end https://github.com/ruby/ruby/blob/trunk/tool/mk_builtin_loader.rb#L65 def collect_builtin base, tree, name, bs, inlines, locals = nil while tree - call = recv = sep = mid = args = nil + recv = sep = mid = args = nil case tree.first when :def locals = collect_locals(tree[1]) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/