changeset 16730:d4cc21bf38ab

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>.
author Paul Eggert <eggert@cs.ucla.edu>
date Fri, 30 Mar 2012 15:24:06 -0700
parents 910a9165dae7
children bbd2679d746e
files ChangeLog lib/regcomp.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-03-30  Paul Eggert  <eggert@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  <eblake@redhat.com>
 
 	stdio: don't assume gets any more
--- 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));