This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: More empty body checks
- From: Dirk Mueller <dmueller at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Mike Stump <mrs at apple dot com>
- Date: Thu, 26 Apr 2007 15:39:30 +0200
- Subject: Re: More empty body checks
- References: <20070426010908.9B41C1C67DF@mrs2.apple.com>
On Thursday, 26. April 2007, Mike Stump wrote:
> This patch extends upon http://gcc.gnu.org/PR5520 and adds checking
> for while and for statements. This is fairly safe, as we can come
> very close to only triggering on clearly bad forms. The false
> positives are further reduced when mapped locations are in use.
interesting. I think that would make sense to be implemented in c-common like
the other empty body warnings (as they could benefit from that as well). is
that possible?
Dirk