From: Ted Kremenek Date: Fri, 14 Jan 2011 22:31:38 +0000 (+0000) Subject: The variable 'ReusedDecl' is written but never read. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=689ebfc4fe005591a052f9bc73d462281c12d606;p=clang The variable 'ReusedDecl' is written but never read. Remove this variable (found by clang static analyzer). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123484 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp index 03cb25e903..5101b3b525 100644 --- a/lib/Sema/SemaTemplate.cpp +++ b/lib/Sema/SemaTemplate.cpp @@ -5274,7 +5274,6 @@ Sema::ActOnExplicitInstantiation(Scope *S, ClassTemplateSpecializationDecl *Specialization = 0; - bool ReusedDecl = false; bool HasNoEffect = false; if (PrevDecl) { if (CheckSpecializationInstantiationRedecl(TemplateNameLoc, TSK, @@ -5296,7 +5295,6 @@ Sema::ActOnExplicitInstantiation(Scope *S, Specialization = PrevDecl; Specialization->setLocation(TemplateNameLoc); PrevDecl = 0; - ReusedDecl = true; } }