Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe-lunarg committed Feb 7, 2024
1 parent d334aa5 commit 9178582
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions glm/detail/compute_vector_decl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ namespace glm {
GLM_FUNC_QUALIFIER GLM_CONSTEXPR static vec<L, T, Q> call(vec<L, T, Q> const& a, vec<L, T, Q> const& b)
{
vec<L, T, Q> v(a);
for (int i = 0; i < L; ++i)
for (length_t i = 0; i < L; ++i)
v[i] &= static_cast<T>(b[i]);
return v;
}
Expand All @@ -111,7 +111,7 @@ namespace glm {
GLM_FUNC_QUALIFIER GLM_CONSTEXPR static vec<L, T, Q> call(vec<L, T, Q> const& a, vec<L, T, Q> const& b)
{
vec<L, T, Q> v(a);
for (int i = 0; i < L; ++i)
for (length_t i = 0; i < L; ++i)
v[i] |= static_cast<T>(b[i]);
return v;
}
Expand All @@ -123,7 +123,7 @@ namespace glm {
GLM_FUNC_QUALIFIER GLM_CONSTEXPR static vec<L, T, Q> call(vec<L, T, Q> const& a, vec<L, T, Q> const& b)
{
vec<L, T, Q> v(a);
for (int i = 0; i < L; ++i)
for (length_t i = 0; i < L; ++i)
v[i] ^= static_cast<T>(b[i]);
return v;
}
Expand All @@ -135,7 +135,7 @@ namespace glm {
GLM_FUNC_QUALIFIER GLM_CONSTEXPR static vec<L, T, Q> call(vec<L, T, Q> const& a, vec<L, T, Q> const& b)
{
vec<L, T, Q> v(a);
for (int i = 0; i < L; ++i)
for (length_t i = 0; i < L; ++i)
v[i] <<= static_cast<T>(b[i]);
return v;
}
Expand All @@ -147,7 +147,7 @@ namespace glm {
GLM_FUNC_QUALIFIER GLM_CONSTEXPR static vec<L, T, Q> call(vec<L, T, Q> const& a, vec<L, T, Q> const& b)
{
vec<L, T, Q> v(a);
for (int i = 0; i < L; ++i)
for (length_t i = 0; i < L; ++i)
v[i] >>= static_cast<T>(b[i]);
return v;
}
Expand All @@ -159,7 +159,7 @@ namespace glm {
GLM_FUNC_QUALIFIER GLM_CONSTEXPR static bool call(vec<L, T, Q> const& v1, vec<L, T, Q> const& v2)
{
bool b = true;
for (int i = 0; i < L; ++i)
for (length_t i = 0; i < L; ++i)
b = b && detail::compute_equal<T, std::numeric_limits<T>::is_iec559>::call(v1.x, v2.x);
return b;
}
Expand All @@ -180,7 +180,7 @@ namespace glm {
GLM_FUNC_QUALIFIER GLM_CONSTEXPR static vec<L, T, Q> call(vec<L, T, Q> const& a)
{
vec<L, T, Q> v(a);
for (int i = 0; i < L; ++i)
for (length_t i = 0; i < L; ++i)
v[i] = ~v[i];
return v;
}
Expand Down
1 change: 1 addition & 0 deletions test/core/core_force_compiler_unknown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#elif defined(_MSC_VER)
# pragma warning(push)
# pragma warning(disable: 4201) // nonstandard extension used : nameless struct/union
# pragma warning(disable: 4324) // structure was padded due to alignment specifier
#endif

#include <glm/glm.hpp>
Expand Down

0 comments on commit 9178582

Please sign in to comment.