google / mathfu

C++ math library developed primarily for games focused on simplicity and efficiency.
http://google.github.io/mathfu
Apache License 2.0
1.39k stars 189 forks source link

When building Google_MathFu emits warning C2220 on MSVC #56

Open nnfdnkns opened 2 years ago

nnfdnkns commented 2 years ago

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

  1. mkdir build_amd64 & cd F:\gitP\google\mathfu\build_amd64
  2. set VSCMD_SKIP_SENDTELEMETRY=1 & "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=amd64
  3. cd F:\gitP\google\mathfu\build_amd64
  4. 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 https://github.com/google/mathfu/commit/da23a1227bb65fbb7f2f5b6c504fbbdd1dfdab4b

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]