warn if attr. __cleanup__ is given in type decl. (Allow this as an extension?)
This commit is contained in:
parent
c092f2ed61
commit
89b3cf0b87
1 changed files with 4 additions and 1 deletions
5
tccgen.c
5
tccgen.c
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue