On Thu, Nov 10, 2011 at 7:58 PM, Ted Kremenek <[email protected]> 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

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to