jedioutcast/CODE-mp/qcommon/disablewarnings.h

34 lines
1.7 KiB
C
Raw Normal View History

2013-04-04 14:52:42 +00:00
// hide these nasty warnings
#ifdef _WIN32
#pragma warning(disable : 4018) // signed/unsigned mismatch
#pragma warning(disable : 4032)
#pragma warning(disable : 4051)
#pragma warning(disable : 4057) // slightly different base types
#pragma warning(disable : 4100) // unreferenced formal parameter
#pragma warning(disable : 4115)
#pragma warning(disable : 4125) // decimal digit terminates octal escape sequence
#pragma warning(disable : 4127) // conditional expression is constant
#pragma warning(disable : 4136)
#pragma warning(disable : 4152) // nonstandard extension, function/data pointer conversion in expression
#pragma warning(disable : 4201)
#pragma warning(disable : 4214)
#pragma warning(disable : 4244) // conversion from double to float
#pragma warning(disable : 4284) // return type not UDT
#pragma warning(disable : 4305) // truncation from const double to float
#pragma warning(disable : 4310) // cast truncates constant value
#pragma warning(disable : 4503) // decorated name length truncated
2013-04-04 18:24:26 +00:00
//#pragma warning(disable: 4505)!!!remove these to reduce vm size!! // unreferenced local function has been removed
2013-04-04 14:52:42 +00:00
#pragma warning(disable : 4511) //copy ctor could not be genned
#pragma warning(disable : 4512) //assignment op could not be genned
#pragma warning(disable : 4514) // unreffed inline removed
#pragma warning(disable : 4663) // c++ lang change
//#pragma warning(disable : 4702) // unreachable code
#pragma warning(disable : 4710) // not inlined
#pragma warning(disable : 4711) // selected for automatic inline expansion
#pragma warning(disable : 4220) // varargs matches remaining parameters
#pragma warning(disable : 4786) //identifier was truncated
#endif