From: Faisal Vali Date: Thu, 22 Aug 2013 02:13:38 +0000 (+0000) Subject: Remove some unused variables identified by Juergen Ributzka *I need to turn on this... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ebf55350505523b1fe3e43aab8e1e88decb0ad09;p=clang Remove some unused variables identified by Juergen Ributzka *I need to turn on this warning in Visual C++ - sorry!* git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188979 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Parse/ParseExprCXX.cpp b/lib/Parse/ParseExprCXX.cpp index 1ab70475e5..dc82918c07 100644 --- a/lib/Parse/ParseExprCXX.cpp +++ b/lib/Parse/ParseExprCXX.cpp @@ -938,7 +938,6 @@ ExprResult Parser::ParseLambdaExpressionAfterIntroducer( if (Tok.isNot(tok::r_paren)) { - sema::LambdaScopeInfo *LSI = Actions.getCurLambda(); if (getLangOpts().CPlusPlus1y) Actions.RecordParsingTemplateParameterDepth(TemplateParameterDepth); ParseParameterDeclarationClause(D, Attr, ParamInfo, EllipsisLoc); diff --git a/lib/Sema/SemaLambda.cpp b/lib/Sema/SemaLambda.cpp index bed71a676f..1d6a4d6909 100644 --- a/lib/Sema/SemaLambda.cpp +++ b/lib/Sema/SemaLambda.cpp @@ -143,7 +143,6 @@ ParmVarDecl *Sema::ActOnLambdaAutoParameter(ParmVarDecl *PVD) { AutoParameterPosition, // our template param index /* Identifier*/ 0, false, PVD->isParameterPack()); LSI->AutoTemplateParams.push_back(TemplateParam); - QualType AutoTy = PVD->getType(); // Now replace the 'auto' in the function parameter with this invented // template type parameter. QualType TemplParamType = QualType(TemplateParam->getTypeForDecl(), 0);