From 3bb2994a7de3679fb825f3a36f3dc11ea1daf6a6 Mon Sep 17 00:00:00 2001 From: Kaelyn Uhrain Date: Thu, 3 May 2012 19:46:38 +0000 Subject: [PATCH] Silence unused-variable warning when assertions are disabled. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156091 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/AnalysisBasedWarnings.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Sema/AnalysisBasedWarnings.cpp b/lib/Sema/AnalysisBasedWarnings.cpp index 6e93030382..a171a066d8 100644 --- a/lib/Sema/AnalysisBasedWarnings.cpp +++ b/lib/Sema/AnalysisBasedWarnings.cpp @@ -538,6 +538,7 @@ namespace { void markFallthroughVisited(const AttributedStmt *Stmt) { bool Found = FallthroughStmts.erase(Stmt); assert(Found); + (void)Found; } typedef llvm::SmallPtrSet AttrStmts; -- 2.40.0