Clang should not warn on code in clang that is only there to remove warnings.
llvm-svn: 122941
diff --git a/clang/lib/Rewrite/TokenRewriter.cpp b/clang/lib/Rewrite/TokenRewriter.cpp
index b5f616f..03ce63e 100644
--- a/clang/lib/Rewrite/TokenRewriter.cpp
+++ b/clang/lib/Rewrite/TokenRewriter.cpp
@@ -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;
}