c-index-test.c: Fix syntax. It is C source.

llvm-svn: 144272
This commit is contained in:
NAKAMURA Takumi 2011-11-10 09:30:15 +00:00
parent e63abb5d2b
commit 77d9739249
1 changed files with 3 additions and 2 deletions

View File

@ -2510,13 +2510,14 @@ static void printFixIts(CXDiagnostic D, unsigned indent) {
}
static void printDiagnosticSet(CXDiagnosticSet Diags, unsigned indent) {
unsigned i, n;
if (!Diags)
return;
fprintf(stderr, "\n");
unsigned i = 0;
unsigned n = clang_getNumDiagnosticsInSet(Diags);
n = clang_getNumDiagnosticsInSet(Diags);
for (i = 0; i < n; ++i) {
CXSourceLocation DiagLoc;
CXDiagnostic D;