mirror of
https://github.com/g-truc/glm.git
synced 2026-06-08 02:23:48 +00:00
Fix windows warning for div by 0 in test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user