From 19881cbdec4af56f4aaed2a07769eaf00092dead Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 26 May 2022 11:04:09 -0400 Subject: 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). --- Utilities/cmzlib/zutil.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Utilities/cmzlib/zutil.h b/Utilities/cmzlib/zutil.h index b7d5eff..3341e7c 100644 --- a/Utilities/cmzlib/zutil.h +++ b/Utilities/cmzlib/zutil.h @@ -163,6 +163,12 @@ extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */ # 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 */ #ifndef OS_CODE -- cgit v0.12