Is there a gcc warning for non-multithreaded native C functions?

102 views Asked by At

When you have a C program that uses known non-multithreaded functions such as strtok, ctime... is there a compiler (gcc, clang, icc...) option to trigger a warning, possibly reminding you to use strtok_r, ctime_r, etc...? Maybe something to do with the way the compiler deals with obsolete functions ? It would be more accurate than to grep the source code.

0

There are 0 answers