Open mingodad opened 10 months ago
What branch are you using?
The linux-port branch has no warnings produced when building lrstar, dfa or any of the samples in grammars & examples.
The warning level for lrstar & dfa is not as high as for grammars & examples, but I will eventually turn my attention to that and fix any issues that are revealed.
Sorry by the delay but here is what I found building with g++-9.4
https://github.com/thutt/lrstar/pull/4 .
It's mostly removing (commenting out) unused variables and replacing ALLOC/REALLOC/FREE by less verbose ones.
Commenting out variables is not a practice that will be accepted into this branch. While there is commented-out code in the source tree already, it's not a clean development style when using a SCM. If the code / variables are unused, they need to be removed.
Get anything that is useful here and forget the rest !
Looking at how to eliminate compiler warnings I found that changing the function signatures of allocation/deallocation wrapers can eliminate the warnings like this:
Implementation: