build: remove GCC7 support
[openwrt/staging/mkresin.git] / tools / bison / patches / 100-fix-gets-removal.patch
1 --- a/lib/stdio.in.h
2 +++ b/lib/stdio.in.h
3 @@ -835,14 +835,6 @@ _GL_WARN_ON_USE (getline, "getline is un
4 # endif
5 #endif
6
7 -/* It is very rare that the developer ever has full control of stdin,
8 - so any use of gets warrants an unconditional warning; besides, C11
9 - removed it. */
10 -#undef gets
11 -#if HAVE_RAW_DECL_GETS && !defined __cplusplus
12 -_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
13 -#endif
14 -
15 #if defined _WIN32 && !defined __CYGWIN__
16 # undef getw
17 # define getw _getw