I am wondering if it is possible to generate compiler warnings or errors for specific library functions.
For example, I work all the time on multithreaded programs and I would like to get a compiler warning whenever I try to use a not-threadsafe function like strtok (instead of strtok_r).
Thanks.
You want to use the poison pragma: http://gcc.gnu.org/onlinedocs/gcc-3.2/cpp/Pragmas.html