-
- Downloads
Suppress "unused variable" warnings with older versions of flex.
Versions of flex before 2.5.36 might generate code that results in an "unused variable" warning, when using %option reentrant. Historically we've worked around that by specifying -Wno-error, but that's an unsatisfying solution. The official "fix" for this was just to insert a dummy reference to the variable, so write a small perl script that edits the generated C code similarly. The MSVC side of this is untested, but the buildfarm should soon reveal if I broke that. Discussion: https://postgr.es/m/25456.1487437842@sss.pgh.pa.us
Showing
- src/Makefile.global.in 1 addition, 0 deletionssrc/Makefile.global.in
- src/backend/parser/Makefile 1 addition, 6 deletionssrc/backend/parser/Makefile
- src/bin/psql/Makefile 1 addition, 5 deletionssrc/bin/psql/Makefile
- src/fe_utils/Makefile 1 addition, 5 deletionssrc/fe_utils/Makefile
- src/tools/fix-flex-warning.pl 65 additions, 0 deletionssrc/tools/fix-flex-warning.pl
- src/tools/msvc/pgflex.pl 13 additions, 7 deletionssrc/tools/msvc/pgflex.pl
Loading
Please register or sign in to comment