invoke.texi (Warning Options): Document that -Wempty-body also checks for and while...
commit841cc7daf3e285036b0468ce9eb28695a8080e98
authorMike Stump <mrs@apple.com>
Tue, 8 May 2007 01:31:24 +0000 (8 01:31 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Tue, 8 May 2007 01:31:24 +0000 (8 01:31 +0000)
tree37e00df220b8ab9eb5ac7e99af6a2be48f9819c4
parent79d37e4574ed6ca0c6fbd189b62f84cb8e90450a
invoke.texi (Warning Options): Document that -Wempty-body also checks for and while statements in C++.

* doc/invoke.texi (Warning Options): Document that -Wempty-body
also checks for and while statements in C++.

cp:
* parser.c (check_empty_body): Add.
(cp_parser_iteration_statement): Add call to check_empty_body.

testsuite:
* g++.old-deja/g++.mike/empty.C: Add.

From-SVN: r124534
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.mike/empty.C [new file with mode: 0644]