History

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

Udo committed 6 years ago

Commit 89b3cf01 parent c092f2e1 file · +4 −1Browse files

Unified · Split

tccgen.c+4−1
@@ -4306,7 +4306,10 @@ do_decl: · 4305 unmodified lines
4306 }4306 }
4307 skip('}');4307 skip('}');
4308 parse_attribute(&ad);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}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t