Hide declaration of gets(3) for C11 and later.
gets(3) was removed from C11. Change-Id: I4040a8a6c6d5d2a86878e8a80ca67964fbbb82a8
This commit is contained in:
parent
b656410a73
commit
c0ce590827
@ -254,7 +254,9 @@ int dprintf(int, const char * __restrict, ...) __printflike(2, 3);
|
|||||||
int vdprintf(int, const char * __restrict, __va_list) __printflike(2, 0);
|
int vdprintf(int, const char * __restrict, __va_list) __printflike(2, 0);
|
||||||
|
|
||||||
#ifndef __AUDIT__
|
#ifndef __AUDIT__
|
||||||
|
#if defined(__STDC_VERSION__) && __STDC_VERSION__ < 201112L
|
||||||
char* gets(char*) __warnattr("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, ...)
|
int sprintf(char* __restrict, const char* __restrict, ...)
|
||||||
__printflike(2, 3) __warnattr("sprintf is often misused; please use snprintf");
|
__printflike(2, 3) __warnattr("sprintf is often misused; please use snprintf");
|
||||||
char* tmpnam(char*) __warnattr("tmpnam possibly used unsafely; consider using mkstemp");
|
char* tmpnam(char*) __warnattr("tmpnam possibly used unsafely; consider using mkstemp");
|
||||||
|
@ -63,7 +63,9 @@ using ::ftell;
|
|||||||
using ::fwrite;
|
using ::fwrite;
|
||||||
using ::getc;
|
using ::getc;
|
||||||
using ::getchar;
|
using ::getchar;
|
||||||
|
#if defined(__STDC_VERSION__) && __STDC_VERSION__ < 201112L
|
||||||
using ::gets;
|
using ::gets;
|
||||||
|
#endif
|
||||||
using ::perror;
|
using ::perror;
|
||||||
using ::printf;
|
using ::printf;
|
||||||
using ::putc;
|
using ::putc;
|
||||||
|
Loading…
Reference in New Issue
Block a user