summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-03-31 10:23:28 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-03-31 10:23:28 +0000
commit6c235bc9e126fcecd16257838aa040fc9c363328 (patch)
tree7dec8405315604108278d81093f0bc35c2557215 /tools
parentd76e1cd8276f377c602b8370c7a61dfa7c34c764 (diff)
Remove unused but set variable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153800 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/c-index-test/c-index-test.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c
index 873233575c..b76661fac6 100644
--- a/tools/c-index-test/c-index-test.c
+++ b/tools/c-index-test/c-index-test.c
@@ -1452,11 +1452,10 @@ static int inspect_cursor_at(int argc, const char **argv) {
cspell = clang_getCString(Spelling);
if (cspell && strlen(cspell) != 0) {
unsigned pieceIndex;
- CXSourceRange range, extent;
- extent = clang_getCursorExtent(Cursor);
printf(" Spelling=%s (", cspell);
for (pieceIndex = 0; ; ++pieceIndex) {
- range = clang_Cursor_getSpellingNameRange(Cursor, pieceIndex, 0);
+ CXSourceRange range =
+ clang_Cursor_getSpellingNameRange(Cursor, pieceIndex, 0);
if (clang_Range_isNull(range))
break;
PrintRange(range, 0);