diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2011-01-18 02:00:16 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2011-01-18 02:00:16 +0000 |
commit | 8dfa5f1776c2703bba757c388acf90c7fd8551b4 (patch) | |
tree | 49cbe6a9f4573808eb03cc846d95b3813e4c1de1 /clang/lib/Sema/SemaTemplateDeduction.cpp | |
parent | e46bc4cec56c56e60e3ba034ffbf834fadd63cec (diff) | |
download | bcm5719-llvm-8dfa5f1776c2703bba757c388acf90c7fd8551b4.tar.gz bcm5719-llvm-8dfa5f1776c2703bba757c388acf90c7fd8551b4.zip |
Fix warnings found by gcc-4.6, from -Wunused-but-set-variable and
-Wint-to-pointer-cast.
llvm-svn: 123719
Diffstat (limited to 'clang/lib/Sema/SemaTemplateDeduction.cpp')
-rw-r--r-- | clang/lib/Sema/SemaTemplateDeduction.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaTemplateDeduction.cpp b/clang/lib/Sema/SemaTemplateDeduction.cpp index a608bea34c8..0d074e03333 100644 --- a/clang/lib/Sema/SemaTemplateDeduction.cpp +++ b/clang/lib/Sema/SemaTemplateDeduction.cpp @@ -2019,11 +2019,9 @@ Sema::SubstituteExplicitTemplateArguments( // note that the template argument pack is partially substituted and record // the explicit template arguments. They'll be used as part of deduction // for this template parameter pack. - bool HasPartiallySubstitutedPack = false; for (unsigned I = 0, N = Builder.size(); I != N; ++I) { const TemplateArgument &Arg = Builder[I]; if (Arg.getKind() == TemplateArgument::Pack) { - HasPartiallySubstitutedPack = true; CurrentInstantiationScope->SetPartiallySubstitutedPack( TemplateParams->getParam(I), Arg.pack_begin(), @@ -2438,7 +2436,6 @@ static bool AdjustFunctionParmAndArgTypesForDeduction(Sema &S, else { // - If A is a cv-qualified type, the top level cv-qualifiers of A’s // type are ignored for type deduction. - QualType CanonArgType = S.Context.getCanonicalType(ArgType); if (ArgType.getCVRQualifiers()) ArgType = ArgType.getUnqualifiedType(); } |