[cfe-commits] [PATCH][PR11329][v14] Generalize -Wempty-body: warn when statement body is empty

Dmitri Gribenko gribozavr at gmail.com
Tue Feb 14 14:22:51 PST 2012


On Wed, Feb 15, 2012 at 12:10 AM, Argyrios Kyrtzidis
<kyrtzidis at apple.com> wrote:
> Just commit, but do note at the commit log that there would be no warning if the next statement did not have more indentation; just to re-assure everybody that we are not going to just always warn for empty loop bodies.

Thank you, committed r150515 and r150516.

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-commits mailing list