aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-03-31 15:00:11 +0000
committerSteve Naroff <snaroff@apple.com>2009-03-31 15:00:11 +0000
commit17f689f7f805be86bcafe0a8ecdef14269cb6442 (patch)
treee263ec3cb5cc4304737bf35084b4aaed1685e676
parent8a5c0cd90b8d607ca284274000ed8716b836d253 (diff)
Add support for -Wdeprecated-declarations.
This fixes <rdar://problem/6712496> Unable to disable deprecated warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68108 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--tools/clang-cc/Warnings.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/clang-cc/Warnings.cpp b/tools/clang-cc/Warnings.cpp
index 54155e45a6..698e44fb7d 100644
--- a/tools/clang-cc/Warnings.cpp
+++ b/tools/clang-cc/Warnings.cpp
@@ -139,10 +139,13 @@ static const diag::kind ImplicitFunctionDeclarationDiags[] = {
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) },