Start warning about unknown attributes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64447 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp
index b585bd5..491579c 100644
--- a/lib/Sema/SemaDeclAttr.cpp
+++ b/lib/Sema/SemaDeclAttr.cpp
@@ -1376,10 +1376,7 @@
     // 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/test/Sema/attr-deprecated.c b/test/Sema/attr-deprecated.c
index f018c33..c1a3ae3 100644
--- a/test/Sema/attr-deprecated.c
+++ b/test/Sema/attr-deprecated.c
@@ -4,7 +4,7 @@
 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));