Closed FuXiii closed 1 year ago
If I set CMAKE_CXX_FLAGS
with -Wno-unused-variable
it will compile success. 😂
This shouldn't be a problem, at most it can be considered compiler option settings.
Thanks for this. The warning is new in the GCC version in your MinGW. It also appears with the latest Xcode/Clang. I intend to fix this warning as you did and also create a CMake config option for turning on warnings as errors which we will set in CI but disable by default so most people will not have to deal with new warnings in the future. I'll provide a different PR in a few days.
When use
MinGW
to compile, it will output error:then remove unused variable
s
ande
. It will compile succes.