Forward-port cl/42676407 to disable link-time warning about mktemp, tempnam and tmpnam.

This commit is contained in:
Brooks Moses 2014-06-12 21:59:51 -07:00 committed by Fangrui Song
parent 9e8081d123
commit b1ecb7cf85
3 changed files with 6 additions and 0 deletions

View File

@ -32,5 +32,7 @@ __mktemp (char *template)
}
weak_alias (__mktemp, mktemp)
#if 0 /* Google-local: b/6115789 */
link_warning (mktemp, "the use of `mktemp' is dangerous, "
"better use `mkstemp' or `mkdtemp'")
#endif

View File

@ -39,5 +39,7 @@ tempnam (const char *dir, const char *pfx)
return __strdup (buf);
}
#if 0 /* Google-local: b/6115789 */
link_warning (tempnam,
"the use of `tempnam' is dangerous, better use `mkstemp'")
#endif

View File

@ -47,5 +47,7 @@ tmpnam (char *s)
return s;
}
#if 0 /* Google-local: b/6115789 */
link_warning (tmpnam,
"the use of `tmpnam' is dangerous, better use `mkstemp'")
#endif