From 96de4597eb27064ad2a90cd2f70d5dcf9bf66071 Mon Sep 17 00:00:00 2001 From: albert-github Date: Sun, 24 May 2020 13:39:00 +0200 Subject: Compilation error on debug compilation of constexp.l MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I case we use `LEX_FLAGS=-d` to compile `constexp.l` we get the error: ``` constexp.l: In member function ‘bool ConstExpressionParser::parse(const char*, int, const QCString&)’: constexp.l:140:17: error: ‘yyscanner’ was not declared in this scope; did you mean ‘yyscan_t’? 140 | yyset_debug(1,yyscanner); | ^~~~~~~~~ | yyscan_t make[2]: *** [src/CMakeFiles/doxymain.dir/build.make:455: src/CMakeFiles/doxymain.dir/__/generated_src/constexp.cpp.o] Error 1 ``` --- src/constexp.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constexp.l b/src/constexp.l index a14f8d3..0f053bd 100644 --- a/src/constexp.l +++ b/src/constexp.l @@ -137,7 +137,7 @@ bool ConstExpressionParser::parse(const char *fileName,int lineNr,const QCString struct yyguts_t *yyg = (struct yyguts_t*)p->yyscanner; #ifdef FLEX_DEBUG - yyset_debug(1,yyscanner); + constexpYYset_debug(1,p->yyscanner); #endif yyextra->constExpFileName = fileName; -- cgit v0.12