Bug #628
closed
Added by Jan Schlamelcher over 10 years ago.
Updated over 7 years ago.
Assignee:
Jan Schlamelcher
Description
Apply fixes for vrscanl.c to the flex skeleton, so they don't get overwritten the next time the code is newly generated.
The flex skeleton file for C flex (not flex++) contains GNU Autoconf dependent code that is evaluated when compiling flex for building it into the flex executable. This solution is therefore not viable.
- Status changed from Assigned to Closed
While testing whether it is possible to disable the warnings by adding appropriate 'ofdiag' includes to the lexer file (vrscanl.l), I noticed that these warnings no longer exist in newer versions of flex. So the solution is simple: don't use the outdated flex package that ships with Debian 'jessie' if you want the warnings to go away. To be fair: the flex package that ships with current Arch Linux produces code that emits three warnings, of which one has been fixed on 25.01.2017 in the current flex developement version, which is not yet available under Arch Linux.
- Category set to Library
- Status changed from Closed to Reopened
- Target version changed from 3.6.1+ to 3.6.4
VisualStudio still reports the following warning (8 times, see Dashboard):
warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
- Status changed from Reopened to Closed
- % Done changed from 0 to 100
Fixed by switching to flex 2.6.4 (see commit da8e84d).
Also available in: Atom
PDF