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,7 +4306,10 @@ do_decl:
}
skip('}');
parse_attribute(&ad);
struct_layout(type, &ad);
if ( ad.cleanup_func ) {
tcc_warning("attribute '__cleanup__' ignored on type");
}
struct_layout(type, &ad);
}
}
}