Replace __attribute((__warning__())) by __attribute__((deprecated()))

Clang raises the warning message:
warning: unknown attribute '__warning__' ignored [-Wunknown-attributes]

	* libc/include/stdlib.h (mktemp): Change attribute to deprecated.
	(_mktemp_r): Ditto.

Signed-off-by: Olivier Martin <olivier@labapart.com>
This commit is contained in:
Olivier Martin 2015-11-06 10:05:09 +00:00 committed by Corinna Vinschen
parent c56dc181f9
commit cdb1ebe107
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2015-11-06 Olivier Martin <olivier@labapart.com>
* libc/include/stdlib.h (mktemp): Change attribute to deprecated.
(_mktemp_r): Ditto.
2015-11-03 Marcus Shawcroft <marcus.shawcroft@arm.com> 2015-11-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
* libc/machine/arm/configure.in: Check for __ARM_ARCH_8A__. * libc/machine/arm/configure.in: Check for __ARM_ARCH_8A__.

View File

@ -112,14 +112,14 @@ int _EXFUN(mkostemp,(char *, int));
int _EXFUN(mkostemps,(char *, int, int)); int _EXFUN(mkostemps,(char *, int, int));
int _EXFUN(mkstemp,(char *)); int _EXFUN(mkstemp,(char *));
int _EXFUN(mkstemps,(char *, int)); int _EXFUN(mkstemps,(char *, int));
char * _EXFUN(mktemp,(char *) _ATTRIBUTE ((__warning__ ("the use of `mktemp' is dangerous; use `mkstemp' instead")))); char * _EXFUN(mktemp,(char *) _ATTRIBUTE ((__deprecated__("the use of `mktemp' is dangerous; use `mkstemp' instead"))));
#endif #endif
char * _EXFUN(_mkdtemp_r, (struct _reent *, char *)); char * _EXFUN(_mkdtemp_r, (struct _reent *, char *));
int _EXFUN(_mkostemp_r, (struct _reent *, char *, int)); int _EXFUN(_mkostemp_r, (struct _reent *, char *, int));
int _EXFUN(_mkostemps_r, (struct _reent *, char *, int, int)); int _EXFUN(_mkostemps_r, (struct _reent *, char *, int, int));
int _EXFUN(_mkstemp_r, (struct _reent *, char *)); int _EXFUN(_mkstemp_r, (struct _reent *, char *));
int _EXFUN(_mkstemps_r, (struct _reent *, char *, int)); int _EXFUN(_mkstemps_r, (struct _reent *, char *, int));
char * _EXFUN(_mktemp_r, (struct _reent *, char *) _ATTRIBUTE ((__warning__ ("the use of `mktemp' is dangerous; use `mkstemp' instead")))); char * _EXFUN(_mktemp_r, (struct _reent *, char *) _ATTRIBUTE ((__deprecated__("the use of `mktemp' is dangerous; use `mkstemp' instead"))));
#endif #endif
_VOID _EXFUN(qsort,(_PTR __base, size_t __nmemb, size_t __size, __compar_fn_t _compar)); _VOID _EXFUN(qsort,(_PTR __base, size_t __nmemb, size_t __size, __compar_fn_t _compar));
int _EXFUN(rand,(_VOID)); int _EXFUN(rand,(_VOID));