]> granicus.if.org Git - clang/commitdiff
Silence some release build warnings.
authorChandler Carruth <chandlerc@gmail.com>
Sun, 13 Dec 2009 01:37:04 +0000 (01:37 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 13 Dec 2009 01:37:04 +0000 (01:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91234 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclContextInternals.h
lib/CodeGen/CGException.cpp
lib/Sema/SemaInit.cpp

index c3a7495608132122f29f9c20f575899a290e9261..32405ee812604c15cacdc9c5a1f5d4411ae87d86 100644 (file)
@@ -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;
     }
index 0f201b5601c69cd8a7264b793f7e7d0f3222f6a1..b15b2e9b3b0f988840c4d2400a33d8edbac9d169 100644 (file)
@@ -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");
 
index db5643898b4e0b68889b68ff270028bb86397269..e8794b14bc7e558084926e31e8fb3d597c27fe7a 100644 (file)
@@ -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.