]> Savannah Git Hosting - gnulib.git/commitdiff
parse-datetime: avoid a compiler warning with byacc
authorTim Rühsen <tim.ruehsen@gmx.de>
Sun, 14 Dec 2014 20:32:54 +0000 (20:32 +0000)
committerPádraig Brady <P@draigBrady.com>
Sun, 14 Dec 2014 20:36:10 +0000 (20:36 +0000)
* 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
lib/parse-datetime.y

index 7e5fe91defaf2d5cd72198fd13bc54336f7c0a7f..0870a05b082b4c2e015616dbc2edb4518e43c728 100644 (file)
--- 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
index 52e6a0c21517aa0837684e0ff30077e0bfb3d07a..72d6c38600c3693ba3dc424f8c6dabdb78f6a15a 100644 (file)
@@ -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;