Unused attribute for used variable

2021-01-26 Thread Christoph Grüninger
Dear Bisons! I am still giving CMake's Bison code some love. I regenerated the code using Bison 3.7.4. But Clang 11 with manually set -Wused-but-marked-unused warns: > [ 56%] Building CXX object > Source/CMakeFiles/CMakeLib.dir/LexerParser/cmFortranParser.cxx.o > cmExprParser.cxx:774:54: warning

Re: ‘void free(void*)’ called on unallocated object ‘yyssa’ [-Wfree-nonheap-object]

2021-01-26 Thread Christoph Grüninger
Hi Akim, you were right, the #if 0 part was added by a script to work around a compiler warning. When I regenerated the code with Bison 3.7.4, it was no longer necessary. Currently I try to get my changes included into CMake upstream. Once I did that, I am going to come back to your other idea on i