]> granicus.if.org Git - clang/commitdiff
Clang should not warn on code in clang that is only there to remove warnings.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 6 Jan 2011 01:37:28 +0000 (01:37 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 6 Jan 2011 01:37:28 +0000 (01:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122941 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Rewrite/TokenRewriter.cpp

index b5f616fbfe4dbdac1d81478e59b46f637098671a..03ce63ea1174656cc37fde15fde53630fe90c939 100644 (file)
@@ -73,7 +73,7 @@ TokenRewriter::AddToken(const Token &T, TokenRefTy Where) {
   bool InsertSuccess = TokenAtLoc.insert(std::make_pair(T.getLocation(),
                                                         Where)).second;
   assert(InsertSuccess && "Token location already in rewriter!");
-  InsertSuccess = InsertSuccess;
+  (void)InsertSuccess;
   return Where;
 }