aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorRomain Tartière <romain@blogreen.org>2019-10-02 10:26:39 -1000
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-10-03 13:44:52 +0900
commit1c999952e74e9b5f1e882501580d5f2f5a92f142 (patch)
tree39330090a01dfc01b464c879623c7132a212b607 /misc
parenta515e3f99ea50358afbfc94a53d54a390096626d (diff)
downloadruby-1c999952e74e9b5f1e882501580d5f2f5a92f142.tar.gz
Resolve unused local variable reported by LGTM
LGTM reports that the value assigned to local variable 'shared' is never used: https://lgtm.com/projects/g/ruby/ruby/snapshot/f319a5d064627c6641817ec2ed16b97b4d215148/files/misc/lldb_cruby.py#x6512c0281581a470:1 This problem was introduced in by the refactoring that took place in 7c496b6624f720d539e3c0b40f122a9422a13b99.
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/lldb_cruby.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/lldb_cruby.py b/misc/lldb_cruby.py
index 688f897291..3b46dcb4f0 100755
--- a/misc/lldb_cruby.py
+++ b/misc/lldb_cruby.py
@@ -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)