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

Dmitri Gribenko gribozavr at gmail.com
Wed Jan 4 08:52:06 PST 2012


On Wed, Jan 4, 2012 at 6:47 PM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
> Attached is a patch that implements enhancement proposed in PR11329.

v2, coding style edits.

-- 
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>*/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: generalize-warn-empty-body-v2.patch
Type: text/x-diff
Size: 28691 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120104/9382c8d9/attachment.patch>


More information about the cfe-commits mailing list