mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-25 00:59:19 -06:00
zlib: Suppress some MSVC warnings
Restore the warning suppression code added by commit0e4571d25c(ENH: Initial import from VTK, 2005-01-26, v2.4.0~2414) and commit3edcd70754(ENH: Update zlib to 1.2.3, 2007-09-11, v2.6.0~1135).
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user