public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Replace __attribute((__warning__())) by __attribute__((deprecated()))
@ 2015-11-06 10:33 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2015-11-06 10:33 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=cdb1ebe10729457093fce4df92ae1cd185c854f2

commit cdb1ebe10729457093fce4df92ae1cd185c854f2
Author: Olivier Martin <olivier@labapart.com>
Date:   Fri Nov 6 10:05:09 2015 +0000

    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>

Diff:
---
 newlib/ChangeLog             | 5 +++++
 newlib/libc/include/stdlib.h | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 3dec6e2..f8e51a7 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -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>
 
 	* libc/machine/arm/configure.in: Check for __ARM_ARCH_8A__.
diff --git a/newlib/libc/include/stdlib.h b/newlib/libc/include/stdlib.h
index 51a6f0a..c73ed11 100644
--- a/newlib/libc/include/stdlib.h
+++ b/newlib/libc/include/stdlib.h
@@ -112,14 +112,14 @@ int	_EXFUN(mkostemp,(char *, int));
 int	_EXFUN(mkostemps,(char *, int, int));
 int	_EXFUN(mkstemp,(char *));
 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
 char *	_EXFUN(_mkdtemp_r, (struct _reent *, char *));
 int	_EXFUN(_mkostemp_r, (struct _reent *, char *, int));
 int	_EXFUN(_mkostemps_r, (struct _reent *, char *, int, int));
 int	_EXFUN(_mkstemp_r, (struct _reent *, char *));
 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
 _VOID	_EXFUN(qsort,(_PTR __base, size_t __nmemb, size_t __size, __compar_fn_t _compar));
 int	_EXFUN(rand,(_VOID));


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-06 10:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-06 10:33 [newlib-cygwin] Replace __attribute((__warning__())) by __attribute__((deprecated())) Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).