[BUG] Warnings in cpp2util.h
and generated C++ code when compiling with a high warning level
#970
Labels
bug
Something isn't working
Describe the bug
When compiling the regression-tests with a high warning level there are warnings in
cpp2util.h
as well as in some of the generated C++ code that cppfront produces.To Reproduce
regression-tests\test-results\msvc-2022\run-tests-msvc-2022.bat
file-W4
to thecl.exe
command on line 19run-tests-msvc-2022.bat
fileI only did so for MSVC but I imagine adding
-Wall
etc to the scripts for Clang & GCC will show similar warnings.Warnings in
cpp2util.h
See the
mixed-inspect-values.cpp.output
file for some good examples.Warnings about conversions and unreachable code
Some of the
unreachable code
warnings are fixed by PR #971Warnings in generated C++ code
Here are the MSVC output files containing compiler warnings
The warnings include things like:
Some of them may be expected (e.g. using
fopen
) but others may warrant some investigation. The warning aboutauto_1
will be fixed by PR #969.The
redefined extern to static
warning relates to this:pure2-requires-clauses.cpp2
line 20:Lowered to:
The text was updated successfully, but these errors were encountered: