r314035 - Fix unused variable warning in non-debug builds.
Richard Trieu via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 22 15:16:13 PDT 2017
Author: rtrieu
Date: Fri Sep 22 15:16:13 2017
New Revision: 314035
URL: http://llvm.org/viewvc/llvm-project?rev=314035&view=rev
Log:
Fix unused variable warning in non-debug builds.
Modified:
cfe/trunk/lib/CrossTU/CrossTranslationUnit.cpp
Modified: cfe/trunk/lib/CrossTU/CrossTranslationUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CrossTU/CrossTranslationUnit.cpp?rev=314035&r1=314034&r2=314035&view=diff
==============================================================================
--- cfe/trunk/lib/CrossTU/CrossTranslationUnit.cpp (original)
+++ cfe/trunk/lib/CrossTU/CrossTranslationUnit.cpp Fri Sep 22 15:16:13 2017
@@ -121,7 +121,7 @@ CrossTranslationUnitContext::~CrossTrans
std::string CrossTranslationUnitContext::getLookupName(const NamedDecl *ND) {
SmallString<128> DeclUSR;
- bool Ret = index::generateUSRForDecl(ND, DeclUSR);
+ bool Ret = index::generateUSRForDecl(ND, DeclUSR); (void)Ret;
assert(!Ret && "Unable to generate USR");
return DeclUSR.str();
}
More information about the cfe-commits
mailing list