[cfe-dev] -Wall not catching unused variables

Robert Purves listrp at gmail.com
Thu Jul 16 00:08:41 PDT 2009


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.




More information about the cfe-dev mailing list