Fixed warnings with -pedantic

This commit is contained in:
Christophe Riccio
2014-10-29 10:28:25 +01:00
parent 9fe8bc1f66
commit abb5299e08
3 changed files with 25 additions and 21 deletions

View File

@@ -112,6 +112,7 @@ namespace detail
# endif//GLM_SWIZZLE
};
# else
/*
# if GLM_HAS_UNRESTRICTED_UNIONS
union
{
@@ -125,11 +126,12 @@ namespace detail
};
};
# else
*/
union { T x, r, s; };
union { T y, g, t; };
union { T z, b, p; };
union { T w, a, q; };
# endif
//s# endif
# ifdef GLM_SWIZZLE
GLM_SWIZZLE_GEN_VEC_FROM_VEC4(T, P, tvec4, tvec2, tvec3, tvec4)