From: Paul Eggert Date: Sat, 5 Jan 2013 20:06:52 +0000 (-0800) Subject: regex: conform to strict C X-Git-Tag: v0.1~259 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=d5ddbd8b67da0e39f85727071830b7a33d9bda66;p=gnulib.git regex: conform to strict C * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C. From Aharon Robbins. --- diff --git a/ChangeLog b/ChangeLog index 42952cfe5b..02048c3d83 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2013-01-05 Paul Eggert + regex: conform to strict C + * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C. + From Aharon Robbins. + gnulib-tool: fix incompatibility with autopoint 0.18.2 * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line. Problem reported by Tom G. Christensen in diff --git a/lib/regcomp.c b/lib/regcomp.c index 0fdc3bcaef..b236f36d3a 100644 --- a/lib/regcomp.c +++ b/lib/regcomp.c @@ -3291,7 +3291,8 @@ parse_bracket_exp (re_string_t *regexp, re_dfa_t *dfa, re_token_t *token, #ifdef RE_ENABLE_I18N mbcset, &char_class_alloc, #endif /* RE_ENABLE_I18N */ - start_elem.opr.name, syntax); + (const char *) start_elem.opr.name, + syntax); if (BE (*err != REG_NOERROR, 0)) goto parse_bracket_exp_free_return; break;