From: Reid Kleckner Date: Thu, 13 Feb 2014 01:19:59 +0000 (+0000) Subject: Really fix unused variable warnings in CIndex. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6cadadf9bfc5221fdc2b8830a08d4d31c16fddcd;p=clang Really fix unused variable warnings in CIndex. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201285 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/libclang/CIndex.cpp b/tools/libclang/CIndex.cpp index babfc3adea..d8cca44a0e 100644 --- a/tools/libclang/CIndex.cpp +++ b/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;