Hello,
I've attached a patch, which would reduce gcc -Wconversion
compiler warnings quite a bit, when compiling flex generated c code.
I disagree a bit with the attitude:
"compiler warnings on flex generated c code are not flex bugs"
When flex is used in a large project, then those warnings
can create quite some noise, and seriously distract attention
from important stuff.
An easy exercise for the attached patch,
is to have a look at flex's own scan.l with
make ; rm scan.c ; make CFLAGS='-O2 -Wconversion'
Regards,
Robert
Will Estes
Running the scanner
None
Public
|
Date: 2012-08-09 11:50:29 PDT the following commit: |
|
Date: 2012-08-08 12:39:31 PDT Your patch partially applied. It's on the git branch bug-3341746 in the |
| Filename | Description | Download |
|---|---|---|
| 0001-remove-type-conversion-warnings-in-flex-generated-c-.patch | Download |