I'm not sure whether anyone else is seeing this minor issue?
I've always had Lex macro redefinition warnings during builds (msvc2022, Flex-Bison 3.7)
Studio\2022\Community\VC\Tools\MSVC\14.43.34808\include\stdint.h(49): warning C4005: 'INT8_MIN': macro redefinition
Studio\2022\Community\VC\Tools\MSVC\14.43.34808\include\stdint.h(50): warning C4005: 'INT16_MIN': macro redefinition
....
....
After searching on the internet,
The problem appears to be:
These INT8_MIN, INT16_MIN, etc. macros are defined in stdint.h, so I am guessing that you are seeing this warning because your .l file has a block enclosed with %{ and }% in the definitions section with some #include directives, one of which is transitively including stdint.h.
the solution is to place:
%top{
#include <stdint.h>
}
at the top of the Lex .l files, this addition to the Lex files removes the warnings.
Maybe there is a better way, if not would you like me to create a PR with this fix ?