mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
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:
@@ -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
|
||||
|
||||
@@ -28,6 +28,7 @@ lib-link.m4
|
||||
lib-prefix.m4
|
||||
localcharset.m4
|
||||
longlong.m4
|
||||
malloc.m4
|
||||
mbrtowc.m4
|
||||
mbstate_t.m4
|
||||
mbswidth.m4
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user