[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

parse-datetime.y: yylex declaration and definition differ

From: Tim Rühsen
Subject: parse-datetime.y: yylex declaration and definition differ
Date: Sun, 14 Dec 2014 18:03:22 +0100
User-agent: KMail/4.14.2 (Linux/3.16.0-4-amd64; KDE/4.14.2; x86_64; ; )


libgnutls fails to compile here due to an issue with gnulib.

The maintainer (Nikos Mavrogiannopoulos <address@hidden>) asked me to report 
it here.

The declaration and definition of yylex() function differ (and maybe I get an 
error because of gcc's -Wstrict-prototypes, but did not verify it).

This patch fixes it for me:

diff --git a/src/gl/parse-datetime.y b/src/gl/parse-datetime.y
index 52e6a0c..72d6c38 100644
--- a/src/gl/parse-datetime.y
+++ b/src/gl/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;

Regards, Tim

Attachment: signature.asc
Description: This is a digitally signed message part.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]