mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 14:30:06 +00:00
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
This commit is contained in:
parent
6745ccf5a4
commit
349fa79f55
@ -1,3 +1,9 @@
|
|||||||
|
2012-04-05 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
|
[BZ #13908]
|
||||||
|
* stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
|
||||||
|
comment.
|
||||||
|
|
||||||
2012-04-05 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
|
2012-04-05 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
|
||||||
|
|
||||||
* sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
|
* sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
|
||||||
|
4
NEWS
4
NEWS
@ -18,8 +18,8 @@ Version 2.16
|
|||||||
13566, 13583, 13618, 13637, 13656, 13658, 13673, 13691, 13695, 13704,
|
13566, 13583, 13618, 13637, 13656, 13658, 13673, 13691, 13695, 13704,
|
||||||
13706, 13726, 13738, 13760, 13761, 13786, 13792, 13806, 13824, 13840,
|
13706, 13726, 13738, 13760, 13761, 13786, 13792, 13806, 13824, 13840,
|
||||||
13841, 13844, 13846, 13851, 13852, 13854, 13871, 13879, 13883, 13892,
|
13841, 13844, 13846, 13851, 13852, 13854, 13871, 13879, 13883, 13892,
|
||||||
13910, 13911, 13912, 13913, 13915, 13916, 13917, 13918, 13919, 13920,
|
13908, 13910, 13911, 13912, 13913, 13915, 13916, 13917, 13918, 13919,
|
||||||
13921, 13926, 13928, 13938
|
13920, 13921, 13926, 13928, 13938
|
||||||
|
|
||||||
* ISO C11 support:
|
* ISO C11 support:
|
||||||
|
|
||||||
|
@ -603,8 +603,9 @@ extern int clearenv (void) __THROW;
|
|||||||
/* Generate a unique temporary file name from TEMPLATE.
|
/* Generate a unique temporary file name from TEMPLATE.
|
||||||
The last six characters of TEMPLATE must be "XXXXXX";
|
The last six characters of TEMPLATE must be "XXXXXX";
|
||||||
they are replaced with a string that makes the file name unique.
|
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. */
|
Always returns TEMPLATE, it's either a temporary file name or a null
|
||||||
extern char *mktemp (char *__template) __THROW __nonnull ((1)) __wur;
|
string if it cannot get a unique file name. */
|
||||||
|
extern char *mktemp (char *__template) __THROW __nonnull ((1));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED \
|
#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED \
|
||||||
|
Loading…
Reference in New Issue
Block a user