[cfe-commits] r122941 - /cfe/trunk/lib/Rewrite/TokenRewriter.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Wed Jan 5 17:37:28 PST 2011
Author: stoklund
Date: Wed Jan 5 19:37:28 2011
New Revision: 122941
URL: http://llvm.org/viewvc/llvm-project?rev=122941&view=rev
Log:
Clang should not warn on code in clang that is only there to remove warnings.
Modified:
cfe/trunk/lib/Rewrite/TokenRewriter.cpp
Modified: cfe/trunk/lib/Rewrite/TokenRewriter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/TokenRewriter.cpp?rev=122941&r1=122940&r2=122941&view=diff
==============================================================================
--- cfe/trunk/lib/Rewrite/TokenRewriter.cpp (original)
+++ cfe/trunk/lib/Rewrite/TokenRewriter.cpp Wed Jan 5 19:37:28 2011
@@ -73,7 +73,7 @@
bool InsertSuccess = TokenAtLoc.insert(std::make_pair(T.getLocation(),
Where)).second;
assert(InsertSuccess && "Token location already in rewriter!");
- InsertSuccess = InsertSuccess;
+ (void)InsertSuccess;
return Where;
}
More information about the cfe-commits
mailing list