bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] regex: conform to strict C


From: Paul Eggert
Subject: [PATCH] regex: conform to strict C
Date: Sat, 05 Jan 2013 12:08:00 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0

* lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
>From Aharon Robbins.
---
 ChangeLog     | 4 ++++
 lib/regcomp.c | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 42952cf..02048c3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2013-01-05  Paul Eggert  <address@hidden>
 
+       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 0fdc3bc..b236f36 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;
-- 
1.7.11.7




reply via email to

[Prev in Thread] Current Thread [Next in Thread]