From 349fa79f5527f78d60c78eb1fbb2dfb56846018c Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 5 Apr 2012 10:44:08 +0200 Subject: 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 --- stdlib/stdlib.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'stdlib/stdlib.h') 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 \ -- cgit v1.1