]> granicus.if.org Git - clang/commitdiff
Fix unused variable warnings (with -Asserts)
authorDaniel Dunbar <daniel@zuster.org>
Thu, 16 Jul 2009 22:10:11 +0000 (22:10 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 16 Jul 2009 22:10:11 +0000 (22:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76112 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaTemplateInstantiateDecl.cpp

index 1f5856858042a57a34620a59cecc280a4b8e0970..8ff80af19030d0ba76e21902a7b44dd9aa74e0dd 100644 (file)
@@ -646,6 +646,7 @@ TemplateDeclInstantiator::InitFunctionInstantiation(FunctionDecl *New,
           = dyn_cast<FunctionTemplateDecl>((Decl *)ActiveInst.Entity)) {
       assert(FunTmpl->getTemplatedDecl() == Tmpl && 
              "Deduction from the wrong function template?");
+      (void) FunTmpl;
       ActiveInst.Kind = ActiveInstType::TemplateInstantiation;
       ActiveInst.Entity = reinterpret_cast<uintptr_t>(New);
     }