google / mathfu

C++ math library developed primarily for games focused on simplicity and efficiency.

Home Page:http://google.github.io/mathfu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When building Google_MathFu emits warning C2220 on MSVC

nnfdnkns opened this issue · comments

Hi, all
Google_MathFu fails to build on MSVC due to warning C2220 Could you help look?
Environment:
Windows: windows server 2019
VS: 2019

Repro steps:
1.git clone https://github.com/google/mathfu F:\gitP\google\mathfu
2. mkdir build_amd64 & cd F:\gitP\google\mathfu\build_amd64
3. set VSCMD_SKIP_SENDTELEMETRY=1 & "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=amd64
4. cd F:\gitP\google\mathfu\build_amd64
5. msbuild /p:Platform=x64 /p:Configuration=Release mathfu.sln /t:Rebuild 2>&1
Expected
build successfully.

Source
No response

Custom changes or Modules
the commit of Google_MathFu we use is da23a12

error message:
F:\gitP\google\mathfu\unit_tests\quaternion_test\quaternion_test.cpp(117,32): error C2220: the following warning is treated as an error [F:\gitP\google\mathfu\build_amd64\unit_tests\quaternion_no_simd_tests.vcxproj]
F:\gitP\google\mathfu\unit_tests\quaternion_test\quaternion_test.cpp(117,32): error C2220: the following warning is treated as an error [F:\gitP\google\mathfu\build_amd64\unit_tests\quaternion_simd_no_padding_tests.vcxproj]
F:\gitP\google\mathfu\unit_tests\quaternion_test\quaternion_test.cpp(117,32): error C2220: the following warning is treated as an error [F:\gitP\google\mathfu\build_amd64\unit_tests\quaternion_simd_padding_tests.vcxproj]
F:\gitP\google\mathfu\unit_tests\quaternion_test\quaternion_test.cpp(117,32): error C2220: the following warning is treated as an error [F:\gitP\google\mathfu\build_amd64\unit_tests\quaternion_tests.vcxproj]