Skip to content
Snippets Groups Projects
Commit 50504adc authored by Wilson Snyder's avatar Wilson Snyder
Browse files

Work around compiler warning when using flex 2.5.35.

git-svn-id: file://localhost/svn/Verilog-Perl/trunk/Verilog-Perl@77578 c99bdd1b-02e9-0310-b855-c9df8d5cb90a
parent dbde1c0f
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,8 @@ indicates the contributor was also the author of the fix; Thanks!
**** Fix compile error under GCC 3.3.5.
**** Work around compiler warning when using flex 2.5.35. [Jonathan Kimmitt]
* Verilog::Language 3.210 2009/05/19
*** `__FILE__ now expands to a string, per draft SystemVerilog 2010(ish).
......
......@@ -40,6 +40,9 @@
#define YY_SKIP_YYWRAP
// Flex 2.5.35 has compile warning in ECHO, so we'll default our own rule
#define ECHO yyerrorf("Missing VParseLex.l rule: ECHO rule invoked in state %d: %s", YY_START, yytext);
VParseLex* VParseLex::s_currentLexp = NULL; // Current lexing point
VParseBisonYYSType* VParseLex::s_yylvalp = NULL; // LValue for current bison object
......
......@@ -34,6 +34,9 @@
#include <cstring>
#include <iostream>
// Flex 2.5.35 has compile warning in ECHO, so we'll default our own rule
#define ECHO yyerrorf("Missing VPreprocLex.l rule: ECHO rule invoked in state %d: %s", YY_START, yytext);
VPreprocLex* VPreprocLex::s_currentLexp = NULL; // Current lexing point
#define linenoInc() { VPreprocLex::s_currentLexp->linenoInc(); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment