diff options
author | Andreas Jaeger <aj@suse.de> | 2012-04-05 10:44:08 +0200 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2012-04-05 10:44:08 +0200 |
commit | 349fa79f5527f78d60c78eb1fbb2dfb56846018c (patch) | |
tree | 797be30e83cc4da7eeeb3abbeb387df58831264b /stdlib | |
parent | 6745ccf5a4b03a6565e7cc5b7e00e00a56cd440b (diff) | |
download | glibc-349fa79f5527f78d60c78eb1fbb2dfb56846018c.tar glibc-349fa79f5527f78d60c78eb1fbb2dfb56846018c.tar.gz glibc-349fa79f5527f78d60c78eb1fbb2dfb56846018c.tar.bz2 glibc-349fa79f5527f78d60c78eb1fbb2dfb56846018c.zip |
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.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h index d3bd49275c..4da4678f87 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 \ |