From: Chandler Carruth Date: Sun, 13 Dec 2009 01:37:04 +0000 (+0000) Subject: Silence some release build warnings. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60cfcecaf48e4310339dcfbdb0e3f0e6d2853855;p=clang Silence some release build warnings. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91234 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/DeclContextInternals.h b/include/clang/AST/DeclContextInternals.h index c3a7495608..32405ee812 100644 --- a/include/clang/AST/DeclContextInternals.h +++ b/include/clang/AST/DeclContextInternals.h @@ -135,6 +135,7 @@ public: assert(!isNull() && "removing from empty list"); if (NamedDecl *Singleton = getAsDecl()) { assert(Singleton == D && "list is different singleton"); + (void)Singleton; Data = 0; return; } diff --git a/lib/CodeGen/CGException.cpp b/lib/CodeGen/CGException.cpp index 0f201b5601..b15b2e9b3b 100644 --- a/lib/CodeGen/CGException.cpp +++ b/lib/CodeGen/CGException.cpp @@ -326,6 +326,7 @@ void CodeGenFunction::EmitStartEHSpec(const Decl *D) { llvm::BasicBlock *Unwind = 0; assert(PrevLandingPad == 0 && "EHSpec has invoke context"); + (void)PrevLandingPad; llvm::BasicBlock *Cont = createBasicBlock("cont"); diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp index db5643898b..e8794b14bc 100644 --- a/lib/Sema/SemaInit.cpp +++ b/lib/Sema/SemaInit.cpp @@ -2115,6 +2115,7 @@ static OverloadingResult TryRefInitWithConversionFunction(Sema &S, assert(!S.CompareReferenceRelationship(Initializer->getLocStart(), T1, T2, DerivedToBase) && "Must have incompatible references when binding via conversion"); + (void)DerivedToBase; // Build the candidate set directly in the initialization sequence // structure, so that it will persist if we fail.