[cfe-dev] Implementing -Wunused-variables

Oscar Bonilla ob at bitmover.com
Tue Oct 6 09:12:36 PDT 2009


On Oct 5, 2009, at 11:37 PM, Oscar Bonilla wrote:

> On Oct 5, 2009, at 9:46 PM, Oscar Bonilla wrote:
>
>> Is this any better?
>
> Still not quite right:

Ok, this one seems to do the trick:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ob.patch
Type: application/octet-stream
Size: 2081 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091006/0d50c08a/attachment.obj>
-------------- next part --------------


Testcases:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: warn-unused-variables.c
Type: application/octet-stream
Size: 268 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091006/0d50c08a/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: warn-unused-variables.cpp
Type: application/octet-stream
Size: 107 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091006/0d50c08a/attachment-0002.obj>
-------------- next part --------------


I ran "make test" and only got one failure:

FAIL: Clang::Index/c-index-api-test.m (646 of 1636)

which seems unrelated. I also compiled Adium with it and didn't get  
any obvious false positives or false negatives.

Cheers,

-Oscar



More information about the cfe-dev mailing list