# HG changeset patch # User Paul Eggert # Date 1333146246 25200 # Node ID d4cc21bf38ab2075500909a6aa4c5e62b1ddcf76 # Parent 910a9165dae769b738b3f51c1d98490a5fe9c06d 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 --- 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 --- a/lib/regcomp.c +++ b/lib/regcomp.c @@ -853,7 +853,7 @@ { __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));