r201285 - Really fix unused variable warnings in CIndex.

Reid Kleckner reid at kleckner.net
Wed Feb 12 17:20:00 PST 2014


Author: rnk
Date: Wed Feb 12 19:19:59 2014
New Revision: 201285

URL: http://llvm.org/viewvc/llvm-project?rev=201285&view=rev
Log:
Really fix unused variable warnings in CIndex.

Modified:
    cfe/trunk/tools/libclang/CIndex.cpp

Modified: cfe/trunk/tools/libclang/CIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndex.cpp?rev=201285&r1=201284&r2=201285&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndex.cpp (original)
+++ cfe/trunk/tools/libclang/CIndex.cpp Wed Feb 12 19:19:59 2014
@@ -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;





More information about the cfe-commits mailing list