[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add const qualifier for charset_name in init_dfa
From: |
Paul Eggert |
Subject: |
Re: [PATCH] Add const qualifier for charset_name in init_dfa |
Date: |
Fri, 30 Mar 2012 15:27:09 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120209 Thunderbird/10.0.1 |
On 03/30/2012 03:15 PM, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
> Any problem with this patch?
No other comment, and I didn't see any problem. Thanks for the bug
report. I pushed this:
>From ed033e34810947e4f23763171f790fae66a5f063 Mon Sep 17 00:00:00 2001
From: Paul Eggert <address@hidden>
Date: Fri, 30 Mar 2012 15:24:06 -0700
Subject: [PATCH] regex: pacify GCC when compiling GRUB
* lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
a diagnostic. Reported by Vladimir Serbinenko in
<http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
---
ChangeLog | 7 +++++++
lib/regcomp.c | 2 +-
2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4c1daf4..3e21818 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-03-30 Paul Eggert <address@hidden>
+
+ regex: pacify GCC when compiling GRUB
+ * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
+ a diagnostic. Reported by Vladimir Serbinenko in
+ <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
+
2012-03-29 Eric Blake <address@hidden>
stdio: don't assume gets any more
diff --git a/lib/regcomp.c b/lib/regcomp.c
index 3841a0a..311f2d5 100644
--- a/lib/regcomp.c
+++ b/lib/regcomp.c
@@ -853,7 +853,7 @@ init_dfa (re_dfa_t *dfa, size_t pat_len)
{
__re_size_t table_size;
#ifndef _LIBC
- char *codeset_name;
+ const char *codeset_name;
#endif
#ifdef RE_ENABLE_I18N
size_t max_i18n_object_size = MAX (sizeof (wchar_t), sizeof (wctype_t));
--
1.7.6.5