diff options
Diffstat (limited to 'lib/stdio.in.h')
-rw-r--r-- | lib/stdio.in.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/stdio.in.h b/lib/stdio.in.h index 65d3ea1..e528a21 100644 --- a/lib/stdio.in.h +++ b/lib/stdio.in.h @@ -694,10 +694,12 @@ _GL_CXXALIAS_SYS (gets, char *, (char *s)); # undef gets # endif _GL_CXXALIASWARN (gets); +# if HAVE_RAW_DECL_GETS /* It is very rare that the developer ever has full control of stdin, so any use of gets warrants an unconditional warning. Assume it is always declared, since it is required by C89. */ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); +# endif #endif |