[cfe-commits] [PATCH] Silence new warnings introduced by -Wempty-body improvements

Dmitri Gribenko gribozavr at gmail.com
Wed Jan 4 09:33:47 PST 2012


Hello,

My -Wempty-body improvements raise some new warnings in clang itself.

Commit message:
Silence new warnings introduced by -Wempty-body improvements

Dmitri Gribenko

-- 
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: llvm-empty-loop.patch
Type: text/x-diff
Size: 3379 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120104/4e87ac60/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-empty-loop.patch
Type: text/x-diff
Size: 1048 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120104/4e87ac60/attachment-0001.patch>


More information about the cfe-commits mailing list