forked from OSchip/llvm-project
parent
b4f3134ca3
commit
6ee8a7dac5
|
@ -1376,10 +1376,7 @@ static void ProcessDeclAttribute(Decl *D, const AttributeList &Attr, Sema &S) {
|
||||||
// Just ignore
|
// Just ignore
|
||||||
break;
|
break;
|
||||||
default:
|
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();
|
S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr.getName();
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ int f() __attribute__((deprecated));
|
||||||
void g() __attribute__((deprecated));
|
void g() __attribute__((deprecated));
|
||||||
void g();
|
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));
|
extern int var __attribute__((deprecated));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue