aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2012-04-05 10:44:08 +0200
committerAndreas Jaeger <aj@suse.de>2012-04-05 10:44:08 +0200
commit349fa79f5527f78d60c78eb1fbb2dfb56846018c (patch)
tree797be30e83cc4da7eeeb3abbeb387df58831264b /stdlib
parent6745ccf5a4b03a6565e7cc5b7e00e00a56cd440b (diff)
downloadglibc-349fa79f5527f78d60c78eb1fbb2dfb56846018c.zip
glibc-349fa79f5527f78d60c78eb1fbb2dfb56846018c.tar.gz
glibc-349fa79f5527f78d60c78eb1fbb2dfb56846018c.tar.bz2
Don't warn about unused result of mktemp
[BZ #13908] mktemp always returns TEMPLATE, the caller should check TEMPLATE[0] instead of TEMPLATE, so do not warn about the unused result. Fix also the comment for mktemp
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/stdlib.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h
index d3bd492..4da4678 100644
--- a/stdlib/stdlib.h
+++ b/stdlib/stdlib.h
@@ -603,8 +603,9 @@ extern int clearenv (void) __THROW;
/* Generate a unique temporary file name from TEMPLATE.
The last six characters of TEMPLATE must be "XXXXXX";
they are replaced with a string that makes the file name unique.
- Returns TEMPLATE, or a null pointer if it cannot get a unique file name. */
-extern char *mktemp (char *__template) __THROW __nonnull ((1)) __wur;
+ Always returns TEMPLATE, it's either a temporary file name or a null
+ string if it cannot get a unique file name. */
+extern char *mktemp (char *__template) __THROW __nonnull ((1));
#endif
#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED \