r322720 - [Index] Fix GCC warning again :-(
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 17 10:20:57 PST 2018
Author: sammccall
Date: Wed Jan 17 10:20:57 2018
New Revision: 322720
URL: http://llvm.org/viewvc/llvm-project?rev=322720&view=rev
Log:
[Index] Fix GCC warning again :-(
Modified:
cfe/trunk/tools/c-index-test/c-index-test.c
Modified: cfe/trunk/tools/c-index-test/c-index-test.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/c-index-test/c-index-test.c?rev=322720&r1=322719&r2=322720&view=diff
==============================================================================
--- cfe/trunk/tools/c-index-test/c-index-test.c (original)
+++ cfe/trunk/tools/c-index-test/c-index-test.c Wed Jan 17 10:20:57 2018
@@ -738,8 +738,8 @@ static CXString CursorToText(CXCursor Cu
return text;
}
}
- assert(0 && "unknown display type"); // no llvm_unreachable in C.
- return text; // garbage
+ assert(0 && "unknown display type"); /* no llvm_unreachable in C. */
+ return /*garbage*/ text;
}
static void PrintCursor(CXCursor Cursor, const char *CommentSchemaFile) {
More information about the cfe-commits
mailing list