From 1fafbb302d231d0a28a8445c8f18fcb397021556 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20R=C3=BChsen?= Date: Sun, 14 Dec 2014 20:32:54 +0000 Subject: [PATCH] parse-datetime: avoid a compiler warning with byacc * lib/parse-datetime.y (yylex): Use the same prototype in the function definition as the declaration, to avoid a -Wstrict-prototypes warning seen when using byacc. --- ChangeLog | 7 +++++++ lib/parse-datetime.y | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7e5fe91def..0870a05b08 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2014-12-14 Tim Rühsen + + parse-datetime: avoid a compiler warning with byacc (trivial) + * lib/parse-datetime.y (yylex): Use the same prototype in the + function definition as the declaration, to avoid a -Wstrict-prototypes + warning seen when using byacc. + 2014-12-12 Daiki Ueno unicase/locale-language-tests: fix LOCALE_FR test diff --git a/lib/parse-datetime.y b/lib/parse-datetime.y index 52e6a0c215..72d6c38600 100644 --- a/lib/parse-datetime.y +++ b/lib/parse-datetime.y @@ -1031,7 +1031,7 @@ lookup_word (parser_control const *pc, char *word) } static int -yylex (YYSTYPE *lvalp, parser_control *pc) +yylex (union YYSTYPE *lvalp, parser_control *pc) { unsigned char c; size_t count; -- 2.11.4.GIT