From 280642c1369d86f27e5129c5b166d72259ee591b Mon Sep 17 00:00:00 2001 From: "False.Genesis" Date: Fri, 9 Feb 2007 10:53:51 +0000 Subject: [PATCH] disabled some stupid warnings for VC80 --- src/dep/include/zlib/zconf.h | 5 +++++ src/shared/Network/socket_include.h | 4 ++++ src/shared/SysDefs.h | 1 + 3 files changed, 10 insertions(+) diff --git a/src/dep/include/zlib/zconf.h b/src/dep/include/zlib/zconf.h index 03a9431..d8e6c13 100644 --- a/src/dep/include/zlib/zconf.h +++ b/src/dep/include/zlib/zconf.h @@ -8,6 +8,11 @@ #ifndef ZCONF_H #define ZCONF_H +#if COMPILER == COMPILER_MICROSOFT +# pragma warning( disable : 4267 ) // conversion from 'size_t' to 'int', possible loss of data +# pragma warning( disable : 4996 ) // disable warning for "too old" functions (VC80) +#endif + /* * If you *really* need a unique prefix for all types and library functions, * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it. diff --git a/src/shared/Network/socket_include.h b/src/shared/Network/socket_include.h index b6f4330..2ba751e 100644 --- a/src/shared/Network/socket_include.h +++ b/src/shared/Network/socket_include.h @@ -27,6 +27,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include #endif +#if COMPILER == COMPILER_MICROSOFT +# pragma warning( disable : 4996 ) // disable warning for "too old" functions (VC80) +#endif + #ifndef _WIN32 // ---------------------------------------- // common unix includes / defines diff --git a/src/shared/SysDefs.h b/src/shared/SysDefs.h index 9d3b952..64aee9b 100644 --- a/src/shared/SysDefs.h +++ b/src/shared/SysDefs.h @@ -42,6 +42,7 @@ # pragma warning( disable : 4786 ) // identifier was truncated to '255' characters in the debug information # pragma warning( disable : 4800 ) // conversion to bool, performance warning # pragma warning( disable : 4244 ) // conversion from 'uint64' to 'int16', possible loss of data +# pragma warning( disable : 4996 ) // disable warning for "too old" functions (VC80) #endif ////////////////////////////////////