[cfe-commits] r68108 - /cfe/trunk/tools/clang-cc/Warnings.cpp

Douglas Gregor dgregor at apple.com
Tue Mar 31 09:28:36 PDT 2009


On Mar 31, 2009, at 8:00 AM, Steve Naroff wrote:

> Author: snaroff
> Date: Tue Mar 31 10:00:11 2009
> New Revision: 68108
>
> URL: http://llvm.org/viewvc/llvm-project?rev=68108&view=rev
> Log:
> Add support for -Wdeprecated-declarations.
>
> This fixes <rdar://problem/6712496> Unable to disable deprecated  
> warning.

Don't you also need to update the driver to pass this option through?

	- Doug

>
> Modified:
>    cfe/trunk/tools/clang-cc/Warnings.cpp
>
> Modified: cfe/trunk/tools/clang-cc/Warnings.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/Warnings.cpp?rev=68108&r1=68107&r2=68108&view=diff
>
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> ======================================================================
> --- cfe/trunk/tools/clang-cc/Warnings.cpp (original)
> +++ cfe/trunk/tools/clang-cc/Warnings.cpp Tue Mar 31 10:00:11 2009
> @@ -139,10 +139,13 @@
> static const diag::kind PointerSignDiags[] = {
>   diag::ext_typecheck_convert_incompatible_pointer_sign
> };
> +static const diag::kind DeprecatedDeclarations[] =  
> { diag::warn_deprecated };
> +
> // Hmm ... this option is currently actually completely ignored.
> //static const diag::kind StrictSelectorMatchDiags[] = {  };
> // Second the table of options.  MUST be sorted by name! Binary  
> lookup is done.
> static const WarningOption OptionTable[] = {
> +  { "deprecated-declarations", DIAGS(DeprecatedDeclarations) },
>   { "float-equal",           DIAGS(FloatEqualDiags) },
>   { "format-nonliteral",     DIAGS(FormatNonLiteralDiags) },
>   { "implicit-function-declaration",  
> DIAGS(ImplicitFunctionDeclarationDiags) },
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list