[cfe-commits] r153800 - /cfe/trunk/tools/c-index-test/c-index-test.c
Benjamin Kramer
benny.kra at googlemail.com
Sat Mar 31 03:23:28 PDT 2012
Author: d0k
Date: Sat Mar 31 05:23:28 2012
New Revision: 153800
URL: http://llvm.org/viewvc/llvm-project?rev=153800&view=rev
Log:
Remove unused but set variable.
Modified:
cfe/trunk/tools/c-index-test/c-index-test.c
Modified: cfe/trunk/tools/c-index-test/c-index-test.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/c-index-test/c-index-test.c?rev=153800&r1=153799&r2=153800&view=diff
==============================================================================
--- cfe/trunk/tools/c-index-test/c-index-test.c (original)
+++ cfe/trunk/tools/c-index-test/c-index-test.c Sat Mar 31 05:23:28 2012
@@ -1452,11 +1452,10 @@
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);
More information about the cfe-commits
mailing list