summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Sema/SemaDeclAttr.cpp3
-rw-r--r--clang/test/Sema/attr-deprecated.c2
2 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index b585bd544b1..491579c8139 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -1376,10 +1376,7 @@ static void ProcessDeclAttribute(Decl *D, const AttributeList &Attr, Sema &S) {
// Just ignore
break;
default:
-#if 0
- // TODO: when we have the full set of attributes, warn about unknown ones.
S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr.getName();
-#endif
break;
}
}
diff --git a/clang/test/Sema/attr-deprecated.c b/clang/test/Sema/attr-deprecated.c
index f018c3356fc..c1a3ae30664 100644
--- a/clang/test/Sema/attr-deprecated.c
+++ b/clang/test/Sema/attr-deprecated.c
@@ -4,7 +4,7 @@ int f() __attribute__((deprecated));
void g() __attribute__((deprecated));
void g();
-void z() __attribute__((bogusattr)); // todo-warning {{'bogusattr' attribute ignored}}
+void z() __attribute__((bogusattr)); // expected-warning {{'bogusattr' attribute ignored}}
extern int var __attribute__((deprecated));
OpenPOWER on IntegriCloud