[cfe-commits] r68108 - /cfe/trunk/tools/clang-cc/Warnings.cpp
Steve Naroff
snaroff at apple.com
Tue Mar 31 08:00:11 PDT 2009
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.
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) },
More information about the cfe-commits
mailing list