about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrooks Moses <bmoses@google.com>2014-06-12 21:59:51 -0700
committerBrooks Moses <bmoses@google.com>2014-06-12 21:59:51 -0700
commit95d48c5aeaf55b709a1a82d890e0c5b0ad71a9fc (patch)
tree805490e75459ee4a27cd40eb196394b42d2691a2
parentc88182c60891873c535d2e18386826f1fa76398b (diff)
downloadglibc-95d48c5aeaf55b709a1a82d890e0c5b0ad71a9fc.tar.gz
glibc-95d48c5aeaf55b709a1a82d890e0c5b0ad71a9fc.tar.xz
glibc-95d48c5aeaf55b709a1a82d890e0c5b0ad71a9fc.zip
Forward-port cl/42676407 to disable link-time warning about mktemp, tempnam and tmpnam.
-rw-r--r--README.google8
-rw-r--r--misc/mktemp.c2
-rw-r--r--stdio-common/tempnam.c2
-rw-r--r--stdio-common/tmpnam.c2
4 files changed, 14 insertions, 0 deletions
diff --git a/README.google b/README.google
index 48930ee5d1..3ffd7d28e1 100644
--- a/README.google
+++ b/README.google
@@ -358,3 +358,11 @@ libio/wfileops.c
   https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=2482ae433a4249495859343ae1fba408300f2c2e
   https://sourceware.org/bugzilla/show_bug.cgi?id=16724
   (bmoses, backport)
+
+misc/mktemp.c
+stdio-common/tempnam.c
+stdio-common/tmpnam.c
+  For Crosstool v18 disable link-time warning about mktemp,tempnam and tmpnam.
+  b/6115789
+  TODO(ppluzhnikov): revert this after cleanup.
+  (ppluzhnikov, google-local)
diff --git a/misc/mktemp.c b/misc/mktemp.c
index a60f95c067..3355b41cdd 100644
--- a/misc/mktemp.c
+++ b/misc/mktemp.c
@@ -33,4 +33,6 @@ __mktemp (template)
 }
 weak_alias (__mktemp, mktemp)
 
+#if 0  /* Google-local: b/6115789  */
 link_warning (mktemp, "the use of `mktemp' is dangerous, better use `mkstemp'")
+#endif
diff --git a/stdio-common/tempnam.c b/stdio-common/tempnam.c
index dcbb0a92ee..157678bb4c 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 3d0386269e..a2ee5c7e76 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