Index: tools/c-index-test/c-index-test.c =================================================================== --- tools/c-index-test/c-index-test.c +++ tools/c-index-test/c-index-test.c @@ -1436,6 +1436,7 @@ unsigned RecordIsAnonymous = 0; if (clang_getCursorKind(cursor) == CXCursor_FieldDecl) { Record = Parent = p; + (void) Record; do { Record = Parent; Parent = clang_getCursorSemanticParent(Record);