From: NAKAMURA Takumi Date: Tue, 4 Dec 2012 15:32:03 +0000 (+0000) Subject: c-index-test.c: Make C89-compliant. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dfaed1bfde99a106bbc96dedf86cf0e7be6d2e99;p=platform%2Fupstream%2Fllvm.git c-index-test.c: Make C89-compliant. llvm-svn: 169277 --- diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c index 5ca148f1..c651510 100644 --- a/clang/tools/c-index-test/c-index-test.c +++ b/clang/tools/c-index-test/c-index-test.c @@ -1140,10 +1140,11 @@ static enum CXChildVisitResult PrintTypeKind(CXCursor cursor, CXCursor p, static enum CXChildVisitResult PrintBitWidth(CXCursor cursor, CXCursor p, CXClientData d) { + int Bitwidth; if (clang_getCursorKind(cursor) != CXCursor_FieldDecl) return CXChildVisit_Recurse; - int Bitwidth = clang_getFieldDeclBitWidth(cursor); + Bitwidth = clang_getFieldDeclBitWidth(cursor); if (Bitwidth >= 0) { PrintCursor(cursor, NULL); printf(" bitwidth=%d\n", Bitwidth);