zlib: Suppress some MSVC warnings

Restore the warning suppression code added by commit 0e4571d25c (ENH:
Initial import from VTK, 2005-01-26, v2.4.0~2414) and commit 3edcd70754
(ENH: Update zlib to 1.2.3, 2007-09-11, v2.6.0~1135).
This commit is contained in:
Brad King
2022-05-26 11:04:09 -04:00
parent 0d201ad25b
commit 19881cbdec

View File

@@ -161,6 +161,12 @@ extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
# else
# define fdopen(fd,type) _fdopen(fd,type)
# endif
#endif
#if defined(_MSC_VER)
#pragma warning ( disable : 4127 ) /* cond expr is constant */
#pragma warning ( disable : 4131 ) /* old style declaration */
#pragma warning ( disable : 4244 ) /* conversion loss of data */
#endif
/* common defaults */