From: Joel E. Denny Date: Mon, 24 Sep 2007 01:41:35 +0000 (+0000) Subject: Pacify ./configure --enable-gcc-warnings. X-Git-Tag: v2.3b~99 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/ad5feac4e2cd16569d8586f2eac6a9efeeadc038 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'. --- diff --git a/ChangeLog b/ChangeLog index e1e105d8..b381e502 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-09-23 Joel E. Denny + + 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 * src/gram.c (rule_rhs_print_xml): Now static, since it isn't used diff --git a/m4/.cvsignore b/m4/.cvsignore index 8397d912..02485e8b 100644 --- a/m4/.cvsignore +++ b/m4/.cvsignore @@ -28,6 +28,7 @@ lib-link.m4 lib-prefix.m4 localcharset.m4 longlong.m4 +malloc.m4 mbrtowc.m4 mbstate_t.m4 mbswidth.m4 diff --git a/po/.cvsignore b/po/.cvsignore index e060f7ff..648116eb 100644 --- a/po/.cvsignore +++ b/po/.cvsignore @@ -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 diff --git a/src/print-xml.c b/src/print-xml.c index be6bb56a..cde23665 100644 --- a/src/print-xml.c +++ b/src/print-xml.c @@ -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; diff --git a/src/print-xml.h b/src/print-xml.h index b0bbe196..6257f861 100644 --- a/src/print-xml.h +++ b/src/print-xml.h @@ -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); diff --git a/src/state.c b/src/state.c index 8fb769aa..aa392aec 100644 --- a/src/state.c +++ b/src/state.c @@ -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, ""); BITSET_FOR_EACH (biter, reds->lookahead_tokens[red], k, 0) {