mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
6678aafbbb
Fixes the following warning, occurring during the linux-clang-test CI builds: [824/832] Building CXX object test/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o In file included from /home/runner/work/vcmi/vcmi/test/googletest/googletest/src/gtest-all.cc:38: In file included from /home/runner/work/vcmi/vcmi/test/googletest/googletest/include/gtest/gtest.h:65: In file included from /home/runner/work/vcmi/vcmi/test/googletest/googletest/include/gtest/gtest-death-test.h:43: In file included from /home/runner/work/vcmi/vcmi/test/googletest/googletest/include/gtest/internal/gtest-death-test-internal.h:47: In file included from /home/runner/work/vcmi/vcmi/test/googletest/googletest/include/gtest/gtest-matchers.h:48: /home/runner/work/vcmi/vcmi/test/googletest/googletest/include/gtest/gtest-printers.h:532:9: warning: implicit conversion from 'int32_t' (aka 'int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 532 | if (static_cast<int32_t>(val * mulfor6 + 0.5) / mulfor6 == val) return 6; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ /home/runner/work/vcmi/vcmi/test/googletest/googletest/include/gtest/gtest-printers.h:551:17: note: in instantiation of function template specialization 'testing::internal::AppropriateResolution<float>' requested here 551 | os->precision(AppropriateResolution(f)); | ^ /home/runner/work/vcmi/vcmi/test/googletest/googletest/include/gtest/gtest-printers.h:544:9: warning: implicit conversion from 'int32_t' (aka 'int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 544 | if (static_cast<int32_t>(val / divfor6 + 0.5) * divfor6 == val) return 6; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ 2 warnings generated. |
||
---|---|---|
.. | ||
battle | ||
entity | ||
erm | ||
events | ||
game | ||
googletest@b514bdc898 | ||
map | ||
mock | ||
netpacks | ||
rmg | ||
scripting | ||
serializer | ||
spells | ||
testdata | ||
vcai | ||
CMakeLists.txt | ||
CMemoryBufferTest.cpp | ||
CVcmiTestConfig.cpp | ||
CVcmiTestConfig.h | ||
JsonComparer.cpp | ||
JsonComparer.h | ||
main.cpp | ||
StdInc.cpp | ||
StdInc.h |