]> granicus.if.org Git - clang/commitdiff
Silence unused variable warning in CIndex.cpp with NDEBUG
authorReid Kleckner <reid@kleckner.net>
Wed, 12 Feb 2014 23:56:20 +0000 (23:56 +0000)
committerReid Kleckner <reid@kleckner.net>
Wed, 12 Feb 2014 23:56:20 +0000 (23:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201276 91177308-0d34-0410-b5e6-96231b3b80d8

tools/libclang/CIndex.cpp

index bb21285cda729792a175cfa0e7624342a1621a9e..babfc3adea875cd92915110059f3aa68b3e93605 100644 (file)
@@ -2611,6 +2611,7 @@ CXTranslationUnit clang_createTranslationUnit(CXIndex CIdx,
   CXTranslationUnit TU;
   enum CXErrorCode Result =
       clang_createTranslationUnit2(CIdx, ast_filename, &TU);
+  (void)Result;
   assert((TU && Result == CXError_Success) ||
          (!TU && Result != CXError_Success));
   return TU;