diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-04-11 19:54:09 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-04-11 19:54:09 +0000 |
commit | 47f1165c92bc4104e314223ed9ad251e914687c1 (patch) | |
tree | 0127213b573a5cc60577f30267c3866133f45458 /tools | |
parent | d98ef9ae48ab4090d4d5d703ce65cfac62807fda (diff) |
[libclang] Apparently it's important to build in C89, sigh..
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154525 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/c-index-test/c-index-test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c index 3dfc732d2b..a81de2717f 100644 --- a/tools/c-index-test/c-index-test.c +++ b/tools/c-index-test/c-index-test.c @@ -667,8 +667,9 @@ static enum CXChildVisitResult PrintTypeKind(CXCursor cursor, CXCursor p, { int numArgs = clang_Cursor_getNumArguments(cursor); if (numArgs != -1 && numArgs != 0) { + int i; printf(" [args="); - for (int i = 0; i < numArgs; ++i) { + for (i = 0; i < numArgs; ++i) { CXType T = clang_getCursorType(clang_Cursor_getArgument(cursor, i)); if (T.kind != CXType_Invalid) { CXString S = clang_getTypeKindSpelling(T.kind); |