From 6a179c046749e7e41c85957b97b69558e7286252 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Fri, 12 Jul 2013 16:07:22 +0200 Subject: C++: remove warning about stray comma after last enumerator Although it's a C++11 feature, all sane compilers support it as an extension to C++03/C++98. Change-Id: I3c7b0db345d0b175554534e879717f4d14f48b0f Reviewed-by: hjk Reviewed-by: Nikolai Kosjar --- src/libs/3rdparty/cplusplus/Bind.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src') diff --git a/src/libs/3rdparty/cplusplus/Bind.cpp b/src/libs/3rdparty/cplusplus/Bind.cpp index f889622689..61140f4120 100644 --- a/src/libs/3rdparty/cplusplus/Bind.cpp +++ b/src/libs/3rdparty/cplusplus/Bind.cpp @@ -3017,18 +3017,10 @@ bool Bind::visit(EnumSpecifierAST *ast) this->enumerator(it->value, e); } - if (ast->stray_comma_token /* && ! translationUnit()->cxx0xEnabled()*/) { - const Token &tk = tokenAt(ast->stray_comma_token); - if (! tk.generated()) - translationUnit()->warning(ast->stray_comma_token, - "commas at the end of enumerator lists are a C++0x-specific feature"); - } - (void) switchScope(previousScope); return false; } - // PtrOperatorAST bool Bind::visit(PointerToMemberAST *ast) { -- cgit v1.2.1