gnutls-devel
[Top][All Lists]
Advanced

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

src/gl/parse-datetime.y: yylex declaration and defintion differ


From: Tim Rühsen
Subject: src/gl/parse-datetime.y: yylex declaration and defintion differ
Date: Sun, 14 Dec 2014 15:17:42 +0100
User-agent: KMail/4.14.2 (Linux/3.16.0-4-amd64; KDE/4.14.2; x86_64; ; )

Hi Nikos,

a while ago I mentioned a byacc problem and you said your are using bison 
yacc. Now I found some time and changed to bison. But I still get the same 
error (now using branch 3.3.x).

The declaration and definition of yylex() function differ (and maybe I get an 
error because of -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]