]> Savannah Git Hosting - gnulib.git/commitdiff
regex: conform to strict C
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 5 Jan 2013 20:06:52 +0000 (12:06 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 5 Jan 2013 20:07:12 +0000 (12:07 -0800)
* lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
From Aharon Robbins.

ChangeLog
lib/regcomp.c

index 42952cfe5b72867c46328cfa7d15ede37cdb8fd6..02048c3d83c80e45d20fed0b013ccae8dac7a215 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
 
+       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
index 0fdc3bcaef3bb13e2b3ffa89bb46a7e28828a91a..b236f36d3a1510b777901935042dc320b6a3bc32 100644 (file)
@@ -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;