public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/google/grte/v5-2.27/master] Forward-port cl/42676407 to disable link-time warning about mktemp, tempnam and tmpnam.
@ 2021-08-28  0:41 Fangrui Song
  0 siblings, 0 replies; only message in thread
From: Fangrui Song @ 2021-08-28  0:41 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b1ecb7cf858fa28a8fc24f606d4eec89b03d545b

commit b1ecb7cf858fa28a8fc24f606d4eec89b03d545b
Author: Brooks Moses <bmoses@google.com>
Date:   Thu Jun 12 21:59:51 2014 -0700

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

Diff:
---
 misc/mktemp.c          | 2 ++
 stdio-common/tempnam.c | 2 ++
 stdio-common/tmpnam.c  | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/misc/mktemp.c b/misc/mktemp.c
index 1417ab37f4..87a7f49baa 100644
--- a/misc/mktemp.c
+++ b/misc/mktemp.c
@@ -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
diff --git a/stdio-common/tempnam.c b/stdio-common/tempnam.c
index 5e64482b48..c3b4863ac9 100644
--- a/stdio-common/tempnam.c
+++ b/stdio-common/tempnam.c
@@ -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
diff --git a/stdio-common/tmpnam.c b/stdio-common/tmpnam.c
index 9b0b6114a3..152575f14c 100644
--- a/stdio-common/tmpnam.c
+++ b/stdio-common/tmpnam.c
@@ -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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-28  0:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-28  0:41 [glibc/google/grte/v5-2.27/master] Forward-port cl/42676407 to disable link-time warning about mktemp, tempnam and tmpnam Fangrui Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).