From: Reid Kleckner Date: Wed, 12 Feb 2014 23:56:20 +0000 (+0000) Subject: Silence unused variable warning in CIndex.cpp with NDEBUG X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79bbe1140776fbc8533a0a545f0191b1524c0569;p=clang Silence unused variable warning in CIndex.cpp with NDEBUG git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201276 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/libclang/CIndex.cpp b/tools/libclang/CIndex.cpp index bb21285cda..babfc3adea 100644 --- a/tools/libclang/CIndex.cpp +++ b/tools/libclang/CIndex.cpp @@ -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;