diff --git a/idlib/math/Matrix.h b/idlib/math/Matrix.h index 785ac8f..4a8935a 100644 --- a/idlib/math/Matrix.h +++ b/idlib/math/Matrix.h @@ -34,6 +34,12 @@ If you have questions concerning this license or the applicable additional terms #include #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; } +#ifdef _MSC_VER // DG: re-enable warning 4189 +#pragma warning( pop ) +#endif + #endif /* !__MATH_MATRIX_H__ */