lexxmark / winflexbison

Main winflexbision repository
GNU General Public License v3.0
403 stars 117 forks source link

Warning GCC and Clang : Empty lines : %option '-L' #71

Open dpasukhi opened 3 years ago

dpasukhi commented 3 years ago

Files generated by latest flex have some problems:

lexxmark commented 3 years ago

Hello @dpasukhi,

Have you tried to pull request this change to the upstream Gnu flex project? I try to have minimal changes from original project to easily adopt new versions.

Regards, Alex

dpasukhi commented 3 years ago

Dear @lexxmark , I researched a gnu flex project.

The fix with flex/src/scan.c is not correct ( need to fix scan,l ), but this fix not respons for empty line. The correction of this file is not needed in this patch ( I'll clean up this, if you interested in the integration of this bug ) Fix of gcc/clang warnings has been integrated in the last year within https://github.com/westes/flex/commit/a631f5da8d4fd60fbde7b06bcf43bc9a155c27d5 The fix resolved problems with '-L' options was been request in the last September in the https://github.com/westes/flex/pull/468

Best regards, Dmitry.

lexxmark commented 3 years ago

I'll clean up this, if you interested in the integration of this bug

Since flex releases happening very rarely let's cleanup this pull request and I will merge it.

GitMensch commented 3 years ago

Flex sources changed a lot since this PR and the possibly very soon next Flex release seems to have those issues fixed. If the next release here will be likely based on the updated flex version then the change now is possibly not the right thing.

lexxmark commented 3 years ago

Is there any definite date for the next flex release?

GitMensch commented 3 years ago

No, only guesswork based on https://github.com/westes/flex/pull/480 and the referenced issue. "Looks like we are near". If any change is incorporated now it should be the bunch of changes from flex upstream, not this one which will lead to more conflicts for the later merge.