* make-docfile.c (write_globals): Change char * to char const *
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 25 Feb 2011 22:05:43 +0000 (14:05 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 25 Feb 2011 22:05:43 +0000 (14:05 -0800)
to avoid a GCC "assignment discards qualifiers" diagnostic
in some configurations.

lib-src/ChangeLog
lib-src/make-docfile.c

index 2c98cdf..61480cf 100644 (file)
@@ -1,3 +1,9 @@
+2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * make-docfile.c (write_globals): Change char * to char const *
+       to avoid a GCC "assignment discards qualifiers" diagnostic
+       in some configurations.
+
 2011-02-22  Eli Zaretskii  <eliz@gnu.org>
 
        * etags.c (canonicalize_filename, ISUPPER): Fix last change.
index f0aa222..12dbdbe 100644 (file)
@@ -617,7 +617,7 @@ write_globals (void)
   qsort (globals, num_globals, sizeof (struct global), compare_globals);
   for (i = 0; i < num_globals; ++i)
     {
-      char *type;
+      char const *type;
 
       switch (globals[i].type)
        {