From bc326c6dc3f80c571111d0faf2572548e518be20 Mon Sep 17 00:00:00 2001 From: Paul Eggert 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 . --- ChangeLog | 7 +++++++ lib/regcomp.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4c1daf4ce..3e2181837 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 3841a0a7b..311f2d559 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)); -- 2.11.0