am 185c399c
: Merge "Hide declaration of gets(3) for C11 and later."
* commit '185c399c581f867ad288737b5f824a1fda1f6aaf': Hide declaration of gets(3) for C11 and later.
This commit is contained in:
commit
285a1c1348
2 changed files with 4 additions and 0 deletions
|
@ -254,7 +254,9 @@ int dprintf(int, const char * __restrict, ...) __printflike(2, 3);
|
|||
int vdprintf(int, const char * __restrict, __va_list) __printflike(2, 0);
|
||||
|
||||
#ifndef __AUDIT__
|
||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ < 201112L
|
||||
char* gets(char*) __warnattr("gets is very unsafe; consider using fgets");
|
||||
#endif
|
||||
int sprintf(char* __restrict, const char* __restrict, ...)
|
||||
__printflike(2, 3) __warnattr("sprintf is often misused; please use snprintf");
|
||||
char* tmpnam(char*) __warnattr("tmpnam possibly used unsafely; consider using mkstemp");
|
||||
|
|
|
@ -63,7 +63,9 @@ using ::ftell;
|
|||
using ::fwrite;
|
||||
using ::getc;
|
||||
using ::getchar;
|
||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ < 201112L
|
||||
using ::gets;
|
||||
#endif
|
||||
using ::perror;
|
||||
using ::printf;
|
||||
using ::putc;
|
||||
|
|
Loading…
Reference in a new issue