Revert "Move use of __warnattr to __deprecated."

This reverts commit 4645c4f62d.

Change-Id: I6c1062d54a4e2c4f41ce7a403e4e7840e6339146
This commit is contained in:
Yabin Cui
2015-02-17 23:54:40 +00:00
parent 4645c4f62d
commit 784de4e50a
3 changed files with 8 additions and 12 deletions

View File

@@ -266,16 +266,16 @@ int vdprintf(int, const char * __restrict, __va_list) __printflike(2, 0);
#ifndef __AUDIT__
#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 201112L
char* gets(char*) __deprecated("gets is very unsafe; consider using fgets");
char* gets(char*) __warnattr("gets is very unsafe; consider using fgets");
#endif
int sprintf(char* __restrict, const char* __restrict, ...)
__printflike(2, 3) __deprecated("sprintf is often misused; please use snprintf");
char* tmpnam(char*) __deprecated("tmpnam possibly used unsafely; consider using mkstemp");
__printflike(2, 3) __warnattr("sprintf is often misused; please use snprintf");
char* tmpnam(char*) __warnattr("tmpnam possibly used unsafely; consider using mkstemp");
int vsprintf(char* __restrict, const char* __restrict, __va_list)
__printflike(2, 0) __deprecated("vsprintf is often misused; please use vsnprintf");
__printflike(2, 0) __warnattr("vsprintf is often misused; please use vsnprintf");
#if __XPG_VISIBLE
char* tempnam(const char*, const char*)
__deprecated("tempnam possibly used unsafely; consider using mkstemp");
__warnattr("tempnam possibly used unsafely; consider using mkstemp");
#endif
#endif