Remove unused but set variable.

llvm-svn: 153800
This commit is contained in:
Benjamin Kramer 2012-03-31 10:23:28 +00:00
parent 564b4ba704
commit a61516d324
1 changed files with 2 additions and 3 deletions

View File

@ -1452,11 +1452,10 @@ static int inspect_cursor_at(int argc, const char **argv) {
cspell = clang_getCString(Spelling); cspell = clang_getCString(Spelling);
if (cspell && strlen(cspell) != 0) { if (cspell && strlen(cspell) != 0) {
unsigned pieceIndex; unsigned pieceIndex;
CXSourceRange range, extent;
extent = clang_getCursorExtent(Cursor);
printf(" Spelling=%s (", cspell); printf(" Spelling=%s (", cspell);
for (pieceIndex = 0; ; ++pieceIndex) { for (pieceIndex = 0; ; ++pieceIndex) {
range = clang_Cursor_getSpellingNameRange(Cursor, pieceIndex, 0); CXSourceRange range =
clang_Cursor_getSpellingNameRange(Cursor, pieceIndex, 0);
if (clang_Range_isNull(range)) if (clang_Range_isNull(range))
break; break;
PrintRange(range, 0); PrintRange(range, 0);