mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 14:50:05 +00:00
Forward-port cl/42676407 to disable link-time warning about mktemp, tempnam and tmpnam.
This commit is contained in:
parent
9e8081d123
commit
b1ecb7cf85
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user