Description of problem: flex generates code that compares signed and unsigned numbers. While this is unlikely to cause problems in practice, it's nice habit to declare the variable types properly. Version-Release number of selected component (if applicable): flex-2.5.35-1.fc9 How reproducible: Always. Steps to Reproduce: 1. Use following code: %option noyywrap white [ \t]+ %% {white} { /* We ignore white characters. */ } 2. Compile using flex flex_test.l && cc -Wsign-compare lex.yy.c Actual results: lex.yy.c: In function ‘yy_get_next_buffer’: lex.yy.c:956: warning: comparison between signed and unsigned Expected results: Warningless compilation. Additional info: I have contacted flex maintainer (srivasta at debian) on 2008-04-30 but received no response so far.
Created attachment 305010 [details] Proposed patch.
flex-2.5.35-2.fc9 has been submitted as an update for Fedora 9
flex-2.5.35-2.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.