linker - Warn about deprecated function during linking? -
on linux, can tell linker emit warning when function linked, e.g. this:
static const char blah_msg[] __attribute__((section(".gnu.warning.blah"))) = "blah() deprecated. use blub().";
how implement warning behaviour on solaris 10?
(i.e. solaris studio , solaris ld
)
sorry, asked solaris linker team, , there no way solaris ld
- using compiler deprecated attribute closest can do.
Comments
Post a Comment