Overview
| Artifact ID: | 5d0538abf041f5bafa6a281b1408f1c89679a942 |
|---|---|
| Ticket: | 2458976fffffffffffffffffffffffffffffffff
Use gcc attributes to mark Tcl_Interp fields deprecated |
| User & Date: | dkf on 2012-04-10 16:31:06 |
Changes
- icomment:
Reading through the GCC docs again, I see that __attribute__((__deprecated__)) *can* be applied to fields, if your version of GCC is new enough. What it does is cause access to those fields (but not the overall structure) to generate a warning. (You can supply a custom warning message from gcc 4.5 onwards.) It doesn't generate an error (unless you specify that all warnings are errors, in which case you're very much at the mercy of problems in OS headers too). Tcl itself doesn't touch those fields (it does in the Interp structure, but that's not got any warnings applied to it).
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"