-Wall not catching unused variables

$ 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

Robert P.

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

-Eli

Eli Friedman 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.

<http://llvm.org/bugs/show_bug.cgi?id=4563>

Robert P.