[cfe-commits] [PATCH][PR11329] StaticAnalyzer: Warn when statement body is a semicolon -- an unintended null statement

Dmitri Gribenko gribozavr at gmail.com
Tue Jan 3 13:25:49 PST 2012


On Tue, Jan 3, 2012 at 11:16 PM, Ted Kremenek <kremenek at apple.com> wrote:
> Thanks Dmitri.  I agree with Anna that this should be a compiler warning.

OK, I also agree that it is useful as a warning.  I will rewrite and
repost the patch.

Dmitri

-- 
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