]> granicus.if.org Git - clang/commitdiff
Silence unused-variable warning when assertions are disabled.
authorKaelyn Uhrain <rikka@google.com>
Thu, 3 May 2012 19:46:38 +0000 (19:46 +0000)
committerKaelyn Uhrain <rikka@google.com>
Thu, 3 May 2012 19:46:38 +0000 (19:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156091 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/AnalysisBasedWarnings.cpp

index 6e93030382aaee011edca901e88937e87fd28cf3..a171a066d85981e3912c1ce5d73bbf32e6e1ab6b 100644 (file)
@@ -538,6 +538,7 @@ namespace {
     void markFallthroughVisited(const AttributedStmt *Stmt) {
       bool Found = FallthroughStmts.erase(Stmt);
       assert(Found);
+      (void)Found;
     }
 
     typedef llvm::SmallPtrSet<const AttributedStmt*, 8> AttrStmts;