Unified · Split
| @@ -4306,7 +4306,10 @@ do_decl: · 4305 unmodified lines | ||
| 4306 | 4306 | } |
| 4307 | 4307 | skip('}'); |
| 4308 | 4308 | parse_attribute(&ad); |
| 4309 | − struct_layout(type, &ad); | |
| 4309 | + if ( ad.cleanup_func ) { | |
| 4310 | + tcc_warning("attribute '__cleanup__' ignored on type"); | |
| 4311 | + } | |
| 4312 | + struct_layout(type, &ad); | |
| 4310 | 4313 | } |
| 4311 | 4314 | } |
| 4312 | 4315 | } |