summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/unusedvarsglobal.py
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-03-25 13:56:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-03-25 14:13:12 +0100
commiteab3fa1f372887c913b2f2d85bbccadede10355d (patch)
tree67c6e1427a5314d4df15424a4b2ae5f8290592cc /compilerplugins/clang/unusedvarsglobal.py
parent96900c6de49de3ff41f99e13bb6991b8b17d29f0 (diff)
loplugin:unusedvarsglobal
Change-Id: Ie73c8bec0196c680311b0959f3a17c3af900ce88 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113084 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins/clang/unusedvarsglobal.py')
-rwxr-xr-xcompilerplugins/clang/unusedvarsglobal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/unusedvarsglobal.py b/compilerplugins/clang/unusedvarsglobal.py
index db46b9fee1ca..da268794bb6e 100755
--- a/compilerplugins/clang/unusedvarsglobal.py
+++ b/compilerplugins/clang/unusedvarsglobal.py
@@ -127,7 +127,7 @@ def natural_sort_key(s, _nsre=re.compile('([0-9]+)')):
# sort by both the source-line and the datatype, so the output file ordering is stable
# when we have multiple items on the same source line
def v_sort_key(v):
- return natural_sort_key(v[0]) + [v1]]
+ return natural_sort_key(v[0]) + [v[1]]
# sort results by name and line number
tmp1list = sorted(untouchedSet, key=lambda v: v_sort_key(v))