OSDN Git Service

* doc/invoke.texi (Warning Options): Document that -Wempty-body
authormrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 May 2007 01:31:24 +0000 (01:31 +0000)
committermrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 May 2007 01:31:24 +0000 (01:31 +0000)
commitcc742166738d2d36fbace4160b3c278a49c215f6
tree37e00df220b8ab9eb5ac7e99af6a2be48f9819c4
parent4037e5c3d0e08a67443723611b7346a63f00e1fd
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124534 138bc75d-0d04-0410-961f-82ee72b054a4
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]