summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-12-12 23:09:11 +0900
committerYusuke Endoh <mame@ruby-lang.org>2020-12-12 23:09:11 +0900
commit248f1ef2821325987b7525fc6c839145d66c65e4 (patch)
tree83001476974accb7324f6de7d267ba0bc2605a49 /tool
parent4d2ad8d737c55c3efd4c75131687dd1c8db7441b (diff)
tool/mk_builtin_loader.rb: prevent "assigned but unused variable"
Diffstat (limited to 'tool')
-rw-r--r--tool/mk_builtin_loader.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/mk_builtin_loader.rb b/tool/mk_builtin_loader.rb
index fd8085086e..17f0d99a50 100644
--- a/tool/mk_builtin_loader.rb
+++ b/tool/mk_builtin_loader.rb
@@ -52,7 +52,7 @@ def make_cfunc_name inlines, name, lineno
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
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])