diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2011-10-14 00:04:00 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2011-10-14 00:04:00 +0000 |
commit | f38eaa4748ee6164d5e36309fecef71765ff8b2b (patch) | |
tree | 3012e793eaa3b273e88b1cfcfa5752eacc1abae2 /lib/Sema/SemaType.cpp | |
parent | 5fa065b55bd622f20656e0de3b1f122951146784 (diff) |
Revert the -Wc++98-compat flag because dgregor doesn't like it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141921 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaType.cpp')
-rw-r--r-- | lib/Sema/SemaType.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp index dc08320cad..cee4ed67a1 100644 --- a/lib/Sema/SemaType.cpp +++ b/lib/Sema/SemaType.cpp @@ -2488,11 +2488,8 @@ static TypeSourceInfo *GetFullTypeForDeclarator(TypeProcessingState &state, // it expands those parameter packs. if (T->containsUnexpandedParameterPack()) T = Context.getPackExpansionType(T, llvm::Optional<unsigned>()); - else - S.Diag(D.getEllipsisLoc(), - LangOpts.CPlusPlus0x - ? diag::warn_cxx98_compat_variadic_templates - : diag::ext_variadic_templates); + else if (!LangOpts.CPlusPlus0x) + S.Diag(D.getEllipsisLoc(), diag::ext_variadic_templates); break; case Declarator::FileContext: |