changeset 17834:e0838da3bfe8

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.
author Tim Rühsen <tim.ruehsen@gmx.de>
date Sun, 14 Dec 2014 20:32:54 +0000
parents e57fa2127ab9
children 84affbbe0ee1
files ChangeLog lib/parse-datetime.y
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
+
+	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  <ueno@gnu.org>
 
 	unicase/locale-language-tests: fix LOCALE_FR test
--- a/lib/parse-datetime.y
+++ b/lib/parse-datetime.y
@@ -1031,7 +1031,7 @@
 }
 
 static int
-yylex (YYSTYPE *lvalp, parser_control *pc)
+yylex (union YYSTYPE *lvalp, parser_control *pc)
 {
   unsigned char c;
   size_t count;