From: Jakob Stoklund Olesen Date: Thu, 6 Jan 2011 01:37:28 +0000 (+0000) Subject: Clang should not warn on code in clang that is only there to remove warnings. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7ec67a43d0b5408d6a97e92240207b5a2374456;p=clang Clang should not warn on code in clang that is only there to remove warnings. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122941 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Rewrite/TokenRewriter.cpp b/lib/Rewrite/TokenRewriter.cpp index b5f616fbfe..03ce63ea11 100644 --- a/lib/Rewrite/TokenRewriter.cpp +++ b/lib/Rewrite/TokenRewriter.cpp @@ -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; }