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
+1 -1
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;
+1 -1
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);
-1
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)
{