From 6eaf05a4fda7a8128c8fb6b891b4d3f1da3b4ef1 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Thu, 13 Feb 2014 01:19:59 +0000 Subject: [PATCH] Really fix unused variable warnings in CIndex. llvm-svn: 201285 --- clang/tools/libclang/CIndex.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index babfc3a..d8cca44 100644 --- a/clang/tools/libclang/CIndex.cpp +++ b/clang/tools/libclang/CIndex.cpp @@ -2821,6 +2821,7 @@ clang_parseTranslationUnit(CXIndex CIdx, enum CXErrorCode Result = clang_parseTranslationUnit2( CIdx, source_filename, command_line_args, num_command_line_args, unsaved_files, num_unsaved_files, options, &TU); + (void)Result; assert((TU && Result == CXError_Success) || (!TU && Result != CXError_Success)); return TU; -- 2.7.4