MSVC: Shut up Compiler warning in Matrix.h if asserts are disabled

This commit is contained in:
Daniel Gibson 2020-09-06 04:28:43 +02:00
parent 8d10759cb7
commit a6ecc5e75d

View file

@ -34,6 +34,12 @@ If you have questions concerning this license or the applicable additional terms
#include <malloc.h> #include <malloc.h>
#endif #endif
#ifdef _MSC_VER // DG: I don't care if matrix code has some unused r variable only used for assertions, shut up VS
#pragma warning( push )
#pragma warning( disable : 4189 )
#endif
/* /*
=============================================================================== ===============================================================================
@ -2946,4 +2952,8 @@ ID_INLINE float *idMatX::ToFloatPtr( void ) {
return mat; return mat;
} }
#ifdef _MSC_VER // DG: re-enable warning 4189
#pragma warning( pop )
#endif
#endif /* !__MATH_MATRIX_H__ */ #endif /* !__MATH_MATRIX_H__ */