[cfe-dev] Implementing -Wunused-variables
Oscar Bonilla
ob at bitmover.com
Mon Oct 5 13:37:15 PDT 2009
Hm, after playing with my patch a little I see it's not quite right.
struct s1 {
unsigned int i;
};
will produce an "unused variable 'i'" warning. This is a better patch.
(I'm also adding it to the bug-tracker)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ob.patch
Type: application/octet-stream
Size: 1151 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091005/1f07c3cd/attachment.obj>
-------------- next part --------------
With a better testcase
-------------- next part --------------
A non-text attachment was scrubbed...
Name: warn-unused-variables.c
Type: application/octet-stream
Size: 211 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091005/1f07c3cd/attachment-0001.obj>
-------------- next part --------------
Cheers,
-Oscar
More information about the cfe-dev
mailing list