[cfe-commits] [PATCH][PR11329][v7] Generalize -Wempty-body: warn when statement body is empty
Dmitri Gribenko
gribozavr at gmail.com
Mon Jan 23 06:45:11 PST 2012
On Mon, Jan 23, 2012 at 4:40 PM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
> Please review. Patch rebased to latest trunk and split in two.
And a test.
--
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-v9-test.patch
Type: text/x-diff
Size: 6982 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120123/4f87f7a5/attachment.patch>
More information about the cfe-commits
mailing list