1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Resolve unused local variable reported by LGTM

LGTM reports that the value assigned to local variable 'shared' is never
used:
f319a5d064/files/misc/lldb_cruby.py (x6512c0281581a470):1

This problem was introduced in by the refactoring that took place in
7c496b6624.
This commit is contained in:
Romain Tartière 2019-10-02 10:26:39 -10:00 committed by Nobuyoshi Nakada
parent a515e3f99e
commit 1c999952e7
Notes: git 2019-10-03 13:45:16 +09:00

View file

@ -151,7 +151,7 @@ def lldb_inspect(debugger, target, result, val):
result.write(" (embed)")
elif flags & RUBY_FL_USER2:
shared = val.GetValueForExpressionPath("->as.heap.aux.shared").GetValueAsUnsigned()
result.write(" (shared) shared=%016x")
result.write(" (shared) shared=%016x" % shared)
else:
capa = val.GetValueForExpressionPath("->as.heap.aux.capa").GetValueAsSigned()
result.write(" (ownership) capa=%d" % capa)