From: Daniel Dunbar Date: Thu, 16 Jul 2009 22:10:11 +0000 (+0000) Subject: Fix unused variable warnings (with -Asserts) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bcbb8bd3326a86aa70b7df386ae3c86c9ad255c5;p=clang Fix unused variable warnings (with -Asserts) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76112 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaTemplateInstantiateDecl.cpp b/lib/Sema/SemaTemplateInstantiateDecl.cpp index 1f58568580..8ff80af190 100644 --- a/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -646,6 +646,7 @@ TemplateDeclInstantiator::InitFunctionInstantiation(FunctionDecl *New, = dyn_cast((Decl *)ActiveInst.Entity)) { assert(FunTmpl->getTemplatedDecl() == Tmpl && "Deduction from the wrong function template?"); + (void) FunTmpl; ActiveInst.Kind = ActiveInstType::TemplateInstantiation; ActiveInst.Entity = reinterpret_cast(New); }