This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: More empty body checks


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]