From 248f1ef2821325987b7525fc6c839145d66c65e4 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Sat, 12 Dec 2020 23:09:11 +0900 Subject: [PATCH] tool/mk_builtin_loader.rb: prevent "assigned but unused variable" --- tool/mk_builtin_loader.rb | 4 ++-- 1 file 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])