Browse Source

remove more of the link_warnings

Only the stub warnings left for now.
Waldemar Brodkorb 9 years ago
parent
commit
32d11b1454

+ 0 - 3
libc/signal/siggetmask.c

@@ -24,6 +24,3 @@ siggetmask (void)
 {
   return sigblock (0);
 }
-
-link_warning (siggetmask,
-	      "warning: `siggetmask' is obsolete; `sigprocmask' is best")

+ 0 - 2
libc/stdio/gets.c

@@ -7,8 +7,6 @@
 
 #include "_stdio.h"
 
-link_warning(gets, "the 'gets' function is dangerous and should not be used.")
-
 /* UNSAFE FUNCTION -- do not bother optimizing */
 
 /* disable macro, force actual function call */

+ 0 - 2
libc/stdio/tempnam.c

@@ -40,5 +40,3 @@ tempnam (const char *dir, const char *pfx)
 
   return strdup (buf);
 }
-
-link_warning (tempnam, "the use of OBSOLESCENT `tempnam' is discouraged, use `mkstemp'")

+ 0 - 2
libc/stdio/tmpnam.c

@@ -48,5 +48,3 @@ tmpnam (char *s)
 
   return s;
 }
-
-link_warning (tmpnam, "the use of `tmpnam' is dangerous, better use `mkstemp'")

+ 0 - 1
libc/stdio/tmpnam_r.c

@@ -32,4 +32,3 @@ char * tmpnam_r (char *s)
 
     return s;
 }
-link_warning (tmpnam_r, "the use of OBSOLESCENT `tmpnam_r' is discouraged, use `mkstemp'")

+ 0 - 2
libc/stdlib/mktemp.c

@@ -30,5 +30,3 @@ char *mktemp(char *template)
 
 	return template;
 }
-
-link_warning(mktemp, "the use of `mktemp' is dangerous, better use `mkstemp'")

+ 0 - 2
libc/string/sys_errlist.c

@@ -12,8 +12,6 @@ extern const char _string_syserrmsgs[] attribute_hidden;
 
 #ifdef __UCLIBC_HAS_SYS_ERRLIST__
 
-link_warning(_sys_errlist, "sys_nerr and sys_errlist are obsolete and uClibc support for them (in at least some configurations) will probably be unavailable in the near future.")
-
 const char *const sys_errlist[] = {
 	[0] =				_string_syserrmsgs + 0,
 	[EPERM] =			_string_syserrmsgs + 8,

+ 0 - 1
libc/sysdeps/linux/common/utime.c

@@ -54,6 +54,5 @@ int utime(const char *file, const struct utimbuf *times)
 
 #if (defined __NR_utimensat && !defined __NR_utime) || \
 	defined __NR_utime || defined __NR_utimes
-link_warning(utime, "the use of OBSOLESCENT `utime' is discouraged, use `utimes'")
 libc_hidden_def(utime)
 #endif

+ 0 - 5
libpthread/linuxthreads/attr.c

@@ -172,9 +172,6 @@ int __pthread_attr_setstackaddr(pthread_attr_t *attr, void *stackaddr)
 }
 weak_alias (__pthread_attr_setstackaddr, pthread_attr_setstackaddr)
 
-link_warning (pthread_attr_setstackaddr,
-	      "the use of `pthread_attr_setstackaddr' is deprecated, use `pthread_attr_setstack'")
-
 int __pthread_attr_getstackaddr(const pthread_attr_t *attr, void **stackaddr)
 {
   /* XXX This function has a stupid definition.  The standard specifies
@@ -185,8 +182,6 @@ int __pthread_attr_getstackaddr(const pthread_attr_t *attr, void **stackaddr)
 }
 weak_alias (__pthread_attr_getstackaddr, pthread_attr_getstackaddr)
 
-link_warning (pthread_attr_getstackaddr,
-	      "the use of `pthread_attr_getstackaddr' is deprecated, use `pthread_attr_getstack'")
 #endif
 
 

+ 0 - 3
libpthread/nptl/pthread_attr_getstackaddr.c

@@ -39,6 +39,3 @@ __pthread_attr_getstackaddr (
   return 0;
 }
 strong_alias (__pthread_attr_getstackaddr, pthread_attr_getstackaddr)
-
-link_warning (pthread_attr_getstackaddr,
-              "the use of `pthread_attr_getstackaddr' is deprecated, use `pthread_attr_getstack'")

+ 0 - 3
libpthread/nptl/pthread_attr_setstackaddr.c

@@ -41,6 +41,3 @@ __pthread_attr_setstackaddr (
   return 0;
 }
 strong_alias (__pthread_attr_setstackaddr, pthread_attr_setstackaddr)
-
-link_warning (pthread_attr_setstackaddr,
-              "the use of `pthread_attr_setstackaddr' is deprecated, use `pthread_attr_setstack'")