]> Savannah Git Hosting - gnulib.git/commitdiff
regex: pacify GCC when compiling GRUB
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 30 Mar 2012 22:24:06 +0000 (15:24 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 30 Mar 2012 22:24:37 +0000 (15:24 -0700)
* 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
lib/regcomp.c

index 4c1daf4ce02b69f0b81e9152bf56f9a4083f8281..3e218183728c5826878a9d18cdd3da923c0ee479 100644 (file)
--- 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
index 3841a0a7b4e87f3e0ab37100d0b1c4d1b0051fd4..311f2d559faed0e72512a3e651e3eebb06e3607a 100644 (file)
@@ -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));