Fixed Visual C++ warnings

This commit is contained in:
Christophe Riccio
2017-08-18 20:08:36 +02:00
parent d0ed6aef21
commit 7466c4a9e7
5 changed files with 22 additions and 10 deletions

View File

@@ -31,6 +31,11 @@ namespace glm
/// @addtogroup gtx_range
/// @{
# if GLM_COMPILER & GLM_COMPILER_VC
# pragma warning(push)
# pragma warning(disable : 4100) // unreferenced formal parameter
# endif
template<typename T, qualifier Q>
inline length_t components(vec<1, T, Q> const& v)
{
@@ -85,5 +90,9 @@ namespace glm
return begin(v) + components(v);
}
# if GLM_COMPILER & GLM_COMPILER_VC
# pragma warning(pop)
# endif
/// @}
}//namespace glm