From 005d84d6597a1c0ac607466144c29a81f168cf2c Mon Sep 17 00:00:00 2001 From: Bruno Haible <bruno@clisp.org> Date: Sat, 9 Mar 2024 12:45:06 +0100 Subject: [PATCH] parse-datetime: Simplify. * lib/parse-datetime.y (yyerror): Change return type to 'void'. --- ChangeLog | 5 +++++ lib/parse-datetime.y | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 10de1262c3..6fed81caa6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024-03-09 Bruno Haible <bruno@clisp.org> + + parse-datetime: Simplify. + * lib/parse-datetime.y (yyerror): Change return type to 'void'. + 2024-03-09 Collin Funk <collin.funk1@gmail.com> gnulib-tool.py: Follow gnulib-tool changes, part 48. diff --git a/lib/parse-datetime.y b/lib/parse-datetime.y index b833055a8c..447a943db1 100644 --- a/lib/parse-datetime.y +++ b/lib/parse-datetime.y @@ -244,7 +244,7 @@ debugging (parser_control const *pc) union YYSTYPE; static int yylex (union YYSTYPE *, parser_control *); -static int yyerror (parser_control const *, char const *); +static void yyerror (parser_control const *, char const *); static bool time_zone_hhmm (parser_control *, textint, intmax_t); /* Extract into *PC any date and time info from a string of digits @@ -1539,11 +1539,10 @@ yylex (union YYSTYPE *lvalp, parser_control *pc) } /* Do nothing if the parser reports an error. */ -static int +static void yyerror (_GL_UNUSED parser_control const *pc, _GL_UNUSED char const *s) { - return 0; } /* If *TM0 is the old and *TM1 is the new value of a struct tm after -- 2.39.5