changeset 37514:433c904ce7eb

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 a675ffd91e09
children 969445ba6a67
files ChangeLog lib/parse-datetime.y
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Dec 12 09:20:59 2014 +0900
+++ b/ChangeLog	Sun Dec 14 20:32:54 2014 +0000
@@ -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	Fri Dec 12 09:20:59 2014 +0900
+++ b/lib/parse-datetime.y	Sun Dec 14 20:32:54 2014 +0000
@@ -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;