mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-24 21:41:23 +00:00
MSVC: Shut up Compiler warning in Matrix.h if asserts are disabled
This commit is contained in:
parent
74cacadd73
commit
a0065803ff
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>
|
||||
#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__ */
|
||||
|
|
Loading…
Reference in a new issue