diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2011-02-16 00:30:31 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2011-02-16 00:30:31 +0000 |
commit | 98d810ee83d4c4bf5d89bbb43829533b84b20ecf (patch) | |
tree | e8529362a6da3021acd4c6ef6c739d3fc631c029 | |
parent | 8f457004a1fdfc9c70fb52c5bc2e9d4ea6780d8d (diff) |
Check for deprecated implementation unconditionally.
Warning and its note will be ignored in default case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125621 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Sema/SemaDeclObjC.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp index 075393b4ed..102289b032 100644 --- a/lib/Sema/SemaDeclObjC.cpp +++ b/lib/Sema/SemaDeclObjC.cpp @@ -28,12 +28,8 @@ static void DiagnoseObjCImplementedDeprecations(Sema &S, NamedDecl *ND, SourceLocation ImplLoc, int select) { - - unsigned DIAG = diag::warn_deprecated_def; - if (S.Diags.getDiagnosticLevel(DIAG, ImplLoc)== Diagnostic::Ignored) - return; if (ND && ND->getAttr<DeprecatedAttr>()) { - S.Diag(ImplLoc, DIAG) << select; + S.Diag(ImplLoc, diag::warn_deprecated_def) << select; if (select == 0) S.Diag(ND->getLocation(), diag::note_method_declared_at); else |