c - How to make gcc warn functions given on command line -
i have several libraries use non thread-safe functions, gmtime(), strtok(), asctime()... , want fix them thread-safe equivalent (gmtime_r(), strtok_r(), asctime_r()...).
the source code have made of many libraries. of them can fixed me, others cannot modified (for example libsqlite, libcurl ), external component imported source code tree.
i want gcc stop compilation when tries compile libraries use these non thread safe functions on code own. however, external libraries, don't want trigger gcc error.
how ?
Comments
Post a Comment