Pacify ./configure --enable-gcc-warnings.

* src/print-xml.c, src/print-xml.h (xml_puts): Make third argument
`char const *' instead of `char *'.
* src/state.c (state_rule_lookahead_tokens_print_xml): Remove unused
local variable `sep'.
This commit is contained in:
Joel E. Denny
2007-09-24 01:41:35 +00:00
parent 41d7a5f24d
commit ad5feac4e2
6 changed files with 12 additions and 3 deletions

View File

@@ -1,3 +1,11 @@
2007-09-23 Joel E. Denny <jdenny@ces.clemson.edu>
Pacify ./configure --enable-gcc-warnings.
* src/print-xml.c, src/print-xml.h (xml_puts): Make third argument
`char const *' instead of `char *'.
* src/state.c (state_rule_lookahead_tokens_print_xml): Remove unused
local variable `sep'.
2007-09-21 Paul Eggert <eggert@cs.ucla.edu>
* src/gram.c (rule_rhs_print_xml): Now static, since it isn't used

View File

@@ -28,6 +28,7 @@ lib-link.m4
lib-prefix.m4
localcharset.m4
longlong.m4
malloc.m4
mbrtowc.m4
mbstate_t.m4
mbswidth.m4

View File

@@ -12,6 +12,7 @@ bison.pot
boldquot.sed
en@boldquot.header
en@quot.header
insert-header.sed
insert-header.sin
quot.sed
remove-potcdate.sed

View File

@@ -491,7 +491,7 @@ print_grammar (FILE *out, int level)
}
void
xml_puts (FILE *out, int level, char *s)
xml_puts (FILE *out, int level, char const *s)
{
int i;
level *= 2;

View File

@@ -22,7 +22,7 @@
#ifndef PRINT_XML_H_
# define PRINT_XML_H_
void xml_puts (FILE *, int, char *);
void xml_puts (FILE *, int, char const *);
void xml_printf (FILE *, int, char const *, ...);
char const *xml_escape_n (int n, char const *str);
char const *xml_escape (char const *str);

View File

@@ -259,7 +259,6 @@ state_rule_lookahead_tokens_print_xml (state *s, rule *r,
{
bitset_iterator biter;
int k;
char const *sep = "";
xml_puts (out, level, "<lookaheads>");
BITSET_FOR_EACH (biter, reds->lookahead_tokens[red], k, 0)
{