Closed nyanpasu64 closed 5 years ago
I'd like to fix this warning, but the line in question is
constexpr static Arrays arrays = buildArrays();
Which does not contains any arithmetic operations by itself. So that means that the warning is somewhere in buildArrays()
, but since that's a quite big function, i don't really know what causes the warning exactly.
By commenting out parts of buildArrays()...
generateDataPass<T>(b);
eliminates warning.generateDataPass
, commenting everything but state.addString(ObjI::name);
still causes warning.constexpr void addString(const StringView& s) {
, something related to stringCount += 1;
and intCount += 1;
, and commenting them caused a 0-size array error. At some point (I forgot what I had commented out in generateDataPass
), commenting one or the other produced no warning.Ok, by trial error using the CI, I found out the problem. And it is fixed with commit 14dd84c 46aab40
Thanks for reporting.
I'm compiling https://github.com/woboq/verdigris/releases/tag/v1.2 on MSVC 2019 x64 on Qt Creator using CMake. I get the following warning:
This warning occurs once for each class using Verdigris. The program works though.