From a61516d324c3eee30701a977d271b59a30009e6c Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sat, 31 Mar 2012 10:23:28 +0000 Subject: [PATCH] Remove unused but set variable. llvm-svn: 153800 --- clang/tools/c-index-test/c-index-test.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c index 873233575cb2..b76661fac659 100644 --- a/clang/tools/c-index-test/c-index-test.c +++ b/clang/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);