Mercurial > hg > octave-nkf > gnulib-hg
changeset 7558:c778aa6236a8
* lib/getdate.y (yyerror): Make the arguments pointer-to-const,
to pacify GCC with some -W flags enabled. Problem reported by
Bruno Haible.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Tue, 24 Oct 2006 19:54:55 +0000 |
parents | d8606aab03d1 |
children | f469170486be |
files | ChangeLog lib/getdate.y |
diffstat | 2 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-10-24 Paul Eggert <eggert@cs.ucla.edu> + + * lib/getdate.y (yyerror): Make the arguments pointer-to-const, + to pacify GCC with some -W flags enabled. Problem reported by + Bruno Haible. + 2006-10-24 Jim Meyering <jim@meyering.net> * MODULES.html.sh: Remove uinttostr. It's not a module.
--- a/lib/getdate.y +++ b/lib/getdate.y @@ -195,7 +195,7 @@ union YYSTYPE; static int yylex (union YYSTYPE *, parser_control *); -static int yyerror (parser_control *, char *); +static int yyerror (parser_control const *, char const *); static long int time_zone_hhmm (textint, long int); %} @@ -1106,7 +1106,8 @@ /* Do nothing if the parser reports an error. */ static int -yyerror (parser_control *pc ATTRIBUTE_UNUSED, char *s ATTRIBUTE_UNUSED) +yyerror (parser_control const *pc ATTRIBUTE_UNUSED, + char const *s ATTRIBUTE_UNUSED) { return 0; }