[cfe-commits] r144365 - in /cfe/trunk: include/clang/Basic/DiagnosticDriverKinds.td test/Misc/warning-flags.c

Ted Kremenek kremenek at apple.com
Fri Nov 11 13:47:13 PST 2011


Interesting.  Thanks for pointing this out.

On Nov 11, 2011, at 1:36 PM, Eli Friedman wrote:

> On Thu, Nov 10, 2011 at 7:58 PM, Ted Kremenek <kremenek at apple.com> wrote:
>> Author: kremenek
>> Date: Thu Nov 10 21:58:21 2011
>> New Revision: 144365
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=144365&view=rev
>> Log:
>> Place 'argument unused during compilation' under a -W flag.  Fixes <rdar://problem/10403653>.
>> 
>> Modified:
>>    cfe/trunk/include/clang/Basic/DiagnosticDriverKinds.td
>>    cfe/trunk/test/Misc/warning-flags.c
>> 
>> Modified: cfe/trunk/include/clang/Basic/DiagnosticDriverKinds.td
>> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticDriverKinds.td?rev=144365&r1=144364&r2=144365&view=diff
>> ==============================================================================
>> --- cfe/trunk/include/clang/Basic/DiagnosticDriverKinds.td (original)
>> +++ cfe/trunk/include/clang/Basic/DiagnosticDriverKinds.td Thu Nov 10 21:58:21 2011
>> @@ -101,7 +101,8 @@
>>  def warn_drv_preprocessed_input_file_unused : Warning<
>>   "%0: previously preprocessed input unused when '%1' is present">;
>>  def warn_drv_unused_argument : Warning<
>> -  "argument unused during compilation: '%0'">;
>> +  "argument unused during compilation: '%0'">,
>> +  InGroup<DiagGroup<"unused-command-line-argument">>;
> 
> This doesn't actually work... we don't parse -W flags in the driver.
> 
> -Eli




More information about the cfe-commits mailing list