From 1c999952e74e9b5f1e882501580d5f2f5a92f142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Wed, 2 Oct 2019 10:26:39 -1000 Subject: [PATCH] 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. --- misc/lldb_cruby.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)