From 9f60b0977c7016ad2ac7847af80eb55eeb4ccd31 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Wed, 8 Aug 2018 22:20:30 +0200 Subject: [PATCH] Fixed clang warning --- glm/detail/type_vec1.inl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/glm/detail/type_vec1.inl b/glm/detail/type_vec1.inl index 4be64d0b..10b502af 100644 --- a/glm/detail/type_vec1.inl +++ b/glm/detail/type_vec1.inl @@ -62,16 +62,14 @@ namespace glm // -- Component accesses -- template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR T & vec<1, T, Q>::operator[](typename vec<1, T, Q>::length_type i) + GLM_FUNC_QUALIFIER GLM_CONSTEXPR T & vec<1, T, Q>::operator[](typename vec<1, T, Q>::length_type) { - assert(i >= 0 && i < this->length()); return x; } template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR T const& vec<1, T, Q>::operator[](typename vec<1, T, Q>::length_type i) const + GLM_FUNC_QUALIFIER GLM_CONSTEXPR T const& vec<1, T, Q>::operator[](typename vec<1, T, Q>::length_type) const { - assert(i >= 0 && i < this->length()); return x; }