Browse Source

Fix for new warning in MSVC 17.10 (#1073)

immintrin.h: '__check_isa_support': unreferenced inline function has been removed

See: https://developercommunity.visualstudio.com/t/Including-immintrinh-in-MSVC-17100-Pr/10648138
Jorrit Rouwe 1 year ago
parent
commit
04ef2e1940
2 changed files with 3 additions and 2 deletions
  1. 1 0
      Docs/ReleaseNotes.md
  2. 2 2
      Jolt/Core/Core.h

+ 1 - 0
Docs/ReleaseNotes.md

@@ -22,6 +22,7 @@ For breaking API changes see [this document](https://github.com/jrouwe/JoltPhysi
 
 ### Bug fixes
 
+* Fix for new warning in MSVC 17.10 in immintrin.h: '__check_isa_support': unreferenced inline function has been removed.
 * Fixed clang-18 warning "LLVMgold.so: error loading plugin ... cannot open shared object file: No such file or directory", due to https://github.com/llvm/llvm-project/issues/84271 it currently doesn't support LTO.
 * When calling CharacterVirtual::SetShape, a collision with a sensor would cause the function to abort as if the character was in collision.
 * Fixed bug where the the skinned position of a soft body would update in the first sub-iteration, causing a large velocity spike and jittery behavior.

+ 2 - 2
Jolt/Core/Core.h

@@ -390,10 +390,10 @@
 	JPH_SUPPRESS_WARNING_POP
 
 // Standard C++ includes
+JPH_SUPPRESS_WARNINGS_STD_BEGIN
 #include <float.h>
 #include <limits.h>
 #include <string.h>
-JPH_SUPPRESS_WARNINGS_STD_BEGIN
 #include <vector>
 #include <utility>
 #include <cmath>
@@ -401,7 +401,6 @@ JPH_SUPPRESS_WARNINGS_STD_BEGIN
 #include <functional>
 #include <algorithm>
 #include <cstdint>
-JPH_SUPPRESS_WARNINGS_STD_END
 #if defined(JPH_USE_SSE)
 	#include <immintrin.h>
 #elif defined(JPH_USE_NEON)
@@ -412,6 +411,7 @@ JPH_SUPPRESS_WARNINGS_STD_END
 		#include <arm_neon.h>
 	#endif
 #endif
+JPH_SUPPRESS_WARNINGS_STD_END
 
 JPH_NAMESPACE_BEGIN