Adjust warnings, add #define to fix compile.

This commit is contained in:
Jason Felds
2006-08-10 04:54:12 +00:00
parent 8e8aa6cfb6
commit 7927af2e37
+4 -2
View File
@@ -13,6 +13,8 @@
#endif #endif
#if defined(_MSC_VER) #if defined(_MSC_VER)
#define snprintf _snprintf // Unsure if this goes with __MINGW32__ right now.
#pragma warning (disable : 4201) // nonstandard extension used : nameless struct/union (Windows headers do this) #pragma warning (disable : 4201) // nonstandard extension used : nameless struct/union (Windows headers do this)
#pragma warning (disable : 4786) // turn off broken debugger warning #pragma warning (disable : 4786) // turn off broken debugger warning
#pragma warning (disable : 4512) // assignment operator could not be generated (so?) #pragma warning (disable : 4512) // assignment operator could not be generated (so?)
@@ -27,12 +29,12 @@
#pragma warning (disable : 4063) #pragma warning (disable : 4063)
#pragma warning (disable : 4127) #pragma warning (disable : 4127)
#pragma warning (disable : 4786) /* VC6: identifier was truncated to '255' characters in the debug information */ #pragma warning (disable : 4786) /* VC6: identifier was truncated to '255' characters in the debug information */
#pragma warning (disable : 4505) // removed unferenced local function from integer.cpp & algebra.h
#pragma warning (disable : 4244) // converting of data = possible data loss. (This pragma should eventually go away)
#if _MSC_VER == 1400 // VC8 specific warnings #if _MSC_VER == 1400 // VC8 specific warnings
#pragma warning (disable : 4996) // deprecated functions vs "ISO C++ conformant names". (stricmp vs _stricmp) #pragma warning (disable : 4996) // deprecated functions vs "ISO C++ conformant names". (stricmp vs _stricmp)
#pragma warning (disable : 4505) // removed unferenced local function from integer.cpp & algebra.h
#pragma warning (disable : 4005) // macro redefinitions (ARRAYSIZE) #pragma warning (disable : 4005) // macro redefinitions (ARRAYSIZE)
#pragma warning (disable : 4244) // converting of data = possible data loss. (is this VC8 specific?)
#endif #endif
/* Fix VC breakage. */ /* Fix VC breakage. */