summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseTemplate.cpp
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2011-10-14 00:04:00 +0000
committerJeffrey Yasskin <jyasskin@google.com>2011-10-14 00:04:00 +0000
commitde8a1046338902e6c0ab31c8f22d062debe1f9b8 (patch)
treee167c6ab2cd8140a3e26e1a559cd366cd6547666 /clang/lib/Parse/ParseTemplate.cpp
parentcb5860a70b2805ec050a2877bb7efab9e8daafb9 (diff)
downloadbcm5719-llvm-de8a1046338902e6c0ab31c8f22d062debe1f9b8.tar.gz
bcm5719-llvm-de8a1046338902e6c0ab31c8f22d062debe1f9b8.zip
Revert the -Wc++98-compat flag because dgregor doesn't like it.
llvm-svn: 141921
Diffstat (limited to 'clang/lib/Parse/ParseTemplate.cpp')
-rw-r--r--clang/lib/Parse/ParseTemplate.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/clang/lib/Parse/ParseTemplate.cpp b/clang/lib/Parse/ParseTemplate.cpp
index 3d68a4ab9db..92fe4a5f335 100644
--- a/clang/lib/Parse/ParseTemplate.cpp
+++ b/clang/lib/Parse/ParseTemplate.cpp
@@ -475,10 +475,8 @@ Decl *Parser::ParseTypeParameter(unsigned Depth, unsigned Position) {
Ellipsis = true;
EllipsisLoc = ConsumeToken();
- Diag(EllipsisLoc,
- getLang().CPlusPlus0x
- ? diag::warn_cxx98_compat_variadic_templates
- : diag::ext_variadic_templates);
+ if (!getLang().CPlusPlus0x)
+ Diag(EllipsisLoc, diag::ext_variadic_templates);
}
// Grab the template parameter name (if given)
@@ -549,10 +547,8 @@ Parser::ParseTemplateTemplateParameter(unsigned Depth, unsigned Position) {
if (Tok.is(tok::ellipsis)) {
EllipsisLoc = ConsumeToken();
- Diag(EllipsisLoc,
- getLang().CPlusPlus0x
- ? diag::warn_cxx98_compat_variadic_templates
- : diag::ext_variadic_templates);
+ if (!getLang().CPlusPlus0x)
+ Diag(EllipsisLoc, diag::ext_variadic_templates);
}
// Get the identifier, if given.
OpenPOWER on IntegriCloud