diff --git a/glm/detail/_swizzle.hpp b/glm/detail/_swizzle.hpp index 87896ef4f6..8ee51d712d 100644 --- a/glm/detail/_swizzle.hpp +++ b/glm/detail/_swizzle.hpp @@ -115,12 +115,12 @@ namespace detail GLM_FUNC_QUALIFIER T& operator[](size_t i) { - const int offset_dst[4] = { E0, E1, E2, E3 }; + const std::size_t offset_dst[4] = { E0, E1, E2, E3 }; return this->elem(offset_dst[i]); } GLM_FUNC_QUALIFIER T operator[](size_t i) const { - const int offset_dst[4] = { E0, E1, E2, E3 }; + const std::size_t offset_dst[4] = { E0, E1, E2, E3 }; return this->elem(offset_dst[i]); } diff --git a/test/core/core_force_xyzw_only.cpp b/test/core/core_force_xyzw_only.cpp index d19509de1d..67166578c8 100644 --- a/test/core/core_force_xyzw_only.cpp +++ b/test/core/core_force_xyzw_only.cpp @@ -12,25 +12,25 @@ static int test_comp() int Error = 0; { - glm::ivec1 const A(1); + glm::ivec1 A(1); Error += A.x == 1 ? 0 : 1; } { - glm::ivec2 const A(1, 2); + glm::ivec2 A(1, 2); Error += A.x == 1 ? 0 : 1; Error += A.y == 2 ? 0 : 1; } { - glm::ivec3 const A(1, 2, 3); + glm::ivec3 A(1, 2, 3); Error += A.x == 1 ? 0 : 1; Error += A.y == 2 ? 0 : 1; Error += A.z == 3 ? 0 : 1; } { - glm::ivec4 const A(1, 2, 3, 4); + glm::ivec4 A(1, 2, 3, 4); Error += A.x == 1 ? 0 : 1; Error += A.y == 2 ? 0 : 1; Error += A.z == 3 ? 0 : 1; diff --git a/test/core/core_type_vec1.cpp b/test/core/core_type_vec1.cpp index f3cd026b10..737f09107d 100644 --- a/test/core/core_type_vec1.cpp +++ b/test/core/core_type_vec1.cpp @@ -8,6 +8,7 @@ #if GLM_COMPILER & GLM_COMPILER_CLANG # pragma clang diagnostic push # pragma clang diagnostic ignored "-Wglobal-constructors" +# pragma clang diagnostic ignored "-Wunused-variable" #endif static glm::vec1 g1;