warn if attr. __cleanup__ is given in type decl. (Allow this as an extension?)

This commit is contained in:
Udo 2020-02-09 18:21:59 +01:00
parent c092f2ed61
commit 89b3cf0b87

View File

@ -4306,6 +4306,9 @@ do_decl:
}
skip('}');
parse_attribute(&ad);
if ( ad.cleanup_func ) {
tcc_warning("attribute '__cleanup__' ignored on type");
}
struct_layout(type, &ad);
}
}