diff options
author | Volker Reichelt <v.reichelt@netcologne.de> | 2007-08-05 20:09:32 +0000 |
---|---|---|
committer | Volker Reichelt <reichelt@gcc.gnu.org> | 2007-08-05 20:09:32 +0000 |
commit | 9dfbac5b94278cac26c43986553827e0fe4adc8e (patch) | |
tree | 7bd8579d267e8889845fbd8fe9404aa3db6d5de2 /gcc/cp/parser.c | |
parent | 0d475361a51725490a60788243a1f785cfba4da1 (diff) | |
download | gcc-9dfbac5b94278cac26c43986553827e0fe4adc8e.zip gcc-9dfbac5b94278cac26c43986553827e0fe4adc8e.tar.gz gcc-9dfbac5b94278cac26c43986553827e0fe4adc8e.tar.bz2 |
revert: parser.c (cp_parser_member_declaration): Pedwarn about stray semicolons after member declarations.
cp:
Revert:
2007-03-26 Dirk Mueller <dmueller@suse.de>
* parser.c (cp_parser_member_declaration): Pedwarn
about stray semicolons after member declarations.
testsuite:
* g++.dg/warn/pedantic2.C: Fix error marker. Add more tests.
Revert:
2007-03-22 Dirk Mueller <dmueller@suse.de>
* g++.old-deja/g++.brendan/warnings2.C: Don't use -pedantic.
From-SVN: r127226
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r-- | gcc/cp/parser.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 530ddba..a4ae997 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -15001,11 +15001,7 @@ cp_parser_member_declaration (cp_parser* parser) token = cp_lexer_peek_token (parser->lexer); /* If the next token is a semicolon, consume it. */ if (token->type == CPP_SEMICOLON) - { - if (pedantic && !in_system_header) - pedwarn ("extra %<;%>"); - cp_lexer_consume_token (parser->lexer); - } + cp_lexer_consume_token (parser->lexer); return; } else |