Fixed warnings

This commit is contained in:
Christophe Riccio
2018-08-13 20:41:11 +02:00
parent 7489d5d01e
commit 72c3b98e5b
4 changed files with 22 additions and 22 deletions

View File

@@ -1,10 +1,12 @@
#include <glm/ext/scalar_float_sized.hpp>
GLM_STATIC_ASSERT(sizeof(glm::float32) == 4, "float32 size isn't 4 bytes on this platform");
#if GLM_HAS_STATIC_ASSERT
static_assert(sizeof(glm::float32) == 4, "float32 size isn't 4 bytes on this platform");
#ifndef GLM_FORCE_SINGLE_ONLY
GLM_STATIC_ASSERT(sizeof(glm::float64) == 8, "float64 size isn't 8 bytes on this platform");
#endif//GLM_FORCE_SINGLE_ONLY
# ifndef GLM_FORCE_SINGLE_ONLY
static_assert(sizeof(glm::float64) == 8, "float64 size isn't 8 bytes on this platform");
# endif
#endif
static int test_float_size()
{