Also fixes an interesting error with non-void functions not returning anything. This is undefined behavior, and it turned out GCC used that to produce buggy code. The makefile used -w which disabled any warnings about it. Specifically, the test for workmemsize at the end of codini() always resulted in an error no matter what the size was.
This updates the BriefLZ plugin to 1.2.0.
Also fixes an interesting error with non-void functions not returning anything. This is undefined behavior, and it turned out GCC used that to produce buggy code. The makefile used
-w
which disabled any warnings about it. Specifically, the test forworkmemsize
at the end ofcodini()
always resulted in an error no matter what the size was.A little example (just because it's so absurd):