[cfe-dev] -Wall not catching unused variables

Eli Friedman eli.friedman at gmail.com
Wed Jul 15 23:19:28 PDT 2009


On Wed, Jul 15, 2009 at 10:59 PM, Robert Purves<listrp at gmail.com> wrote:
> $ cat test.c
> int main( void )
> {
>   int silly;
>   return 0;
> }
> $ clang test.c -Wall
> $ gcc test.c -Wall
> test.c: In function 'main':
> test.c:3: warning: unused variable 'silly'
> $ clang --version
> clang version 1.0 (http://llvm.org/svn/llvm-project/cfe/trunk 75893)
> Target: i386-apple-darwin9
> Thread model: posix

Yes, not implemented; please file in Bugzilla so it doesn't get lost.

-Eli




More information about the cfe-dev mailing list