Start warning about unknown attributes.

llvm-svn: 64447
This commit is contained in:
Anders Carlsson 2009-02-13 08:22:04 +00:00
parent b4f3134ca3
commit 6ee8a7dac5
2 changed files with 1 additions and 4 deletions

View File

@ -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;
}
}

View File

@ -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));