changeset 17273:7be3e941fb5b

regex: conform to strict C * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C. From Aharon Robbins.
author Paul Eggert <eggert@cs.ucla.edu>
date Sat, 05 Jan 2013 12:06:52 -0800
parents c9d7491e3e78
children 69f030e5cec4
files ChangeLog lib/regcomp.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/lib/regcomp.c
+++ b/lib/regcomp.c
@@ -3291,7 +3291,8 @@
 #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;