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 <egg...@cs.ucla.edu> 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 <egg...@cs.ucla.edu> + + 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 <ebl...@redhat.com> 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