diff options
author | Brad King <brad.king@kitware.com> | 2022-05-26 15:04:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-05-26 16:29:41 (GMT) |
commit | 19881cbdec4af56f4aaed2a07769eaf00092dead (patch) | |
tree | 392a18a0e6f61c43ab4c7b8aa3cb8dfdb96846f8 /Utilities | |
parent | 0d201ad25ba4ddf83b4f17986ff5fd032c9f209e (diff) | |
download | CMake-19881cbdec4af56f4aaed2a07769eaf00092dead.zip CMake-19881cbdec4af56f4aaed2a07769eaf00092dead.tar.gz CMake-19881cbdec4af56f4aaed2a07769eaf00092dead.tar.bz2 |
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).
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/cmzlib/zutil.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 |