]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Forward-port cl/42676407 to disable link-time warning about mktemp, tempnam and tmpnam.
authorBrooks Moses <bmoses@google.com>
Fri, 13 Jun 2014 04:59:51 +0000 (21:59 -0700)
committerFangrui Song <i@maskray.me>
Sat, 28 Aug 2021 00:23:15 +0000 (17:23 -0700)
misc/mktemp.c
stdio-common/tempnam.c
stdio-common/tmpnam.c

index 1417ab37f418f4afccf7946f05829dddd80b827d..87a7f49baa2523fb7229093490f7610800637648 100644 (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
index 5e64482b48500f18b0e2fa3ff9d8c436ed3005fb..c3b4863ac9fb31fd57362e709aab2d781a931545 100644 (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
index 9b0b6114a3672e82252656ad21a0824e016f4356..152575f14c99bcb7a048fd0b57423cdde29d4c78 100644 (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