Fix windows warning for div by 0 in test

This commit is contained in:
Adam Lusch
2025-10-07 15:04:53 -05:00
committed by Christophe
parent 2bd65b13d9
commit 7e4b80ec23

View File

@@ -1,6 +1,12 @@
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/gtx/compatibility.hpp>
// This file has divisions by zero to test isnan
#if GLM_COMPILER & GLM_COMPILER_VC
# pragma warning(push)
# pragma warning(disable : 4723)
#endif
int main()
{
int Error(0);
@@ -46,3 +52,7 @@ int main()
return Error;
}
#if(GLM_COMPILER & GLM_COMPILER_VC)
# pragma warning(pop)
#endif