From: Paul Eggert Date: Tue, 24 Oct 2006 19:54:55 +0000 (+0000) Subject: * lib/getdate.y (yyerror): Make the arguments pointer-to-const, X-Git-Tag: cvs-readonly~1660 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=4746d0d4e841b5c6e5b1923dda5fdacdc363962e;p=gnulib.git * lib/getdate.y (yyerror): Make the arguments pointer-to-const, to pacify GCC with some -W flags enabled. Problem reported by Bruno Haible. --- diff --git a/ChangeLog b/ChangeLog index c4f0ea57b..a2de46da7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-10-24 Paul Eggert + + * 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 * MODULES.html.sh: Remove uinttostr. It's not a module. diff --git a/lib/getdate.y b/lib/getdate.y index 29a4be146..15073107b 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -195,7 +195,7 @@ typedef struct 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 @@ yylex (YYSTYPE *lvalp, parser_control *pc) /* 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; }