Detected on Ubuntu 10.04, where the glibc fnmatch fix is not yet
present; also reproduced via:
$ gl_cv_func_fnmatch_posix=no CFLAGS=-Wall \
./gnulib-tool --with-tests --test fnmatch
In file included from gllib/fnmatch.c:172:0:
gllib/fnmatch_loop.c: In function ‘internal_fnmatch’:
gllib/fnmatch_loop.c:203:28: error: initialization discards qualifiers from pointer target type
gllib/fnmatch_loop.c:204:28: error: initialization discards qualifiers from pointer target type
* lib/fnmatch_loop.c (FCT): Use correct type.
Reported by Matthias Bolte.
Signed-off-by: Eric Blake <eblake@redhat.com>
+2011-05-18 Eric Blake <eblake@redhat.com>
+
+ fnmatch: avoid compiler warning
+ * lib/fnmatch_loop.c (FCT): Use correct type.
+ Reported by Matthias Bolte.
+
2011-05-13 Jim Meyering <meyering@redhat.com>
maint.mk: three new prohibit_<HDR>_without_use rules
case L_('['):
{
/* Nonzero if the sense of the character class is inverted. */
- CHAR *p_init = p;
- CHAR *n_init = n;
+ const CHAR *p_init = p;
+ const CHAR *n_init = n;
register bool not;
CHAR cold;
UCHAR fn;