chiark / gitweb /
Silence two -Wlogical-op warnings.
[gnupg2.git] / build-aux / speedo / patches / libiconv-1.14.patch
1 #! /bin/sh
2 patch -p0 -l -f $* < $0
3 exit $?
4
5 On some systems the gets macro has been removed and thus the test
6 leads to an unresolved symbol error.
7
8 --- srclib/stdio.in.h~  2011-08-07 15:42:06.000000000 +0200
9 +++ srclib/stdio.in.h   2014-09-04 13:07:07.079024312 +0200
10 @@ -691,11 +691,6 @@
11  _GL_CXXALIAS_SYS (gets, char *, (char *s));
12  #  undef gets
13  # endif
14 -_GL_CXXALIASWARN (gets);
15 -/* It is very rare that the developer ever has full control of stdin,
16 -   so any use of gets warrants an unconditional warning.  Assume it is
17 -   always declared, since it is required by C89.  */
18 -_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
19  #endif