diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-11-12 23:18:03 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2008-11-12 23:18:03 +0100 |
commit | 084eb83032ac2d343ac2e7d2b355ac0b12a02659 (patch) | |
tree | 60277d5e6bb370c59d9ff52ffd5e37282c1fdd45 /gcc/doc | |
parent | 6b20f353f6c35385c5e473672ed373e4470df908 (diff) | |
download | gcc-084eb83032ac2d343ac2e7d2b355ac0b12a02659.zip gcc-084eb83032ac2d343ac2e7d2b355ac0b12a02659.tar.gz gcc-084eb83032ac2d343ac2e7d2b355ac0b12a02659.tar.bz2 |
re PR c++/36478 (warning not emitted when code expanded from macro)
PR c++/36478
Revert:
2007-05-07 Mike Stump <mrs@apple.com>
* doc/invoke.texi (Warning Options): Document that -Wempty-body
also checks for and while statements in C++.
Revert:
2007-05-07 Mike Stump <mrs@apple.com>
* parser.c (check_empty_body): Add.
(cp_parser_iteration_statement): Add call to check_empty_body.
* g++.old-deja/g++.mike/empty.C: Remove.
From-SVN: r141810
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/invoke.texi | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 9016949..3f6f400 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -3678,9 +3678,7 @@ integers are disabled by default in C++ unless @opindex Wempty-body @opindex Wno-empty-body Warn if an empty body occurs in an @samp{if}, @samp{else} or @samp{do -while} statement. Additionally, in C++, warn when an empty body occurs -in a @samp{while} or @samp{for} statement with no whitespacing before -the semicolon. This warning is also enabled by @option{-Wextra}. +while} statement. This warning is also enabled by @option{-Wextra}. @item -Wenum-compare @r{(C++ and Objective-C++ only)} @opindex Wenum-compare |