From: Paul Eggert Date: Fri, 30 Mar 2012 22:24:06 +0000 (-0700) Subject: regex: pacify GCC when compiling GRUB X-Git-Tag: v0.1~796 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=bc326c6dc3f80c571111d0faf2572548e518be20;p=gnulib.git regex: pacify GCC when compiling GRUB * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid a diagnostic. Reported by Vladimir Serbinenko in . --- diff --git a/ChangeLog b/ChangeLog index 4c1daf4ce0..3e21818372 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2012-03-30 Paul Eggert + + regex: pacify GCC when compiling GRUB + * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid + a diagnostic. Reported by Vladimir Serbinenko in + . + 2012-03-29 Eric Blake stdio: don't assume gets any more diff --git a/lib/regcomp.c b/lib/regcomp.c index 3841a0a7b4..311f2d559f 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));