From: Tim Rühsen Date: Sun, 14 Dec 2014 20:32:54 +0000 (+0000) Subject: parse-datetime: avoid a compiler warning with byacc X-Git-Tag: v1.0~7224 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=1fafbb302d231d0a28a8445c8f18fcb397021556;p=gnulib.git 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. --- 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;