mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-29 15:52:03 +00:00
MSVC: Shut up Compiler warning in Matrix.h if asserts are disabled
This commit is contained in:
parent
8d10759cb7
commit
a6ecc5e75d
1 changed files with 10 additions and 0 deletions
|
@ -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__ */
|
||||||
|
|
Loading…
Reference in a new issue