codemp/qcommon/disablewarnings.h

Go to the documentation of this file.
00001 // hide these nasty warnings
00002 
00003 #ifdef _WIN32
00004 
00005 #pragma warning(disable : 4018)     // signed/unsigned mismatch
00006 #pragma warning(disable : 4032)
00007 #pragma warning(disable : 4051)
00008 #pragma warning(disable : 4057)         // slightly different base types
00009 #pragma warning(disable : 4100)         // unreferenced formal parameter
00010 #pragma warning(disable : 4115)
00011 #pragma warning(disable : 4125)         // decimal digit terminates octal escape sequence
00012 #pragma warning(disable : 4127)         // conditional expression is constant
00013 #pragma warning(disable : 4136)
00014 #pragma warning(disable : 4152)         // nonstandard extension, function/data pointer conversion in expression
00015 #pragma warning(disable : 4201)
00016 #pragma warning(disable : 4214)
00017 #pragma warning(disable : 4244)         // conversion from double to float
00018 #pragma warning(disable : 4284)         // return type not UDT
00019 #pragma warning(disable : 4305)         // truncation from const double to float
00020 #pragma warning(disable : 4310)         // cast truncates constant value
00021 #pragma warning(disable : 4389)         // signed/unsigned mismatch
00022 #pragma warning(disable : 4503)         // decorated name length truncated
00023 //#pragma warning(disable:  4505)!!!remove these to reduce vm size!! // unreferenced local function has been removed
00024 #pragma warning(disable : 4511)         //copy ctor could not be genned
00025 #pragma warning(disable : 4512)         //assignment op could not be genned
00026 #pragma warning(disable : 4514)         // unreffed inline removed
00027 #pragma warning(disable : 4663)         // c++ lang change
00028 #pragma warning(disable : 4702)         // unreachable code
00029 #pragma warning(disable : 4710)         // not inlined
00030 #pragma warning(disable : 4711)         // selected for automatic inline expansion
00031 #pragma warning(disable : 4220)         // varargs matches remaining parameters
00032 #pragma warning(disable : 4786)         //identifier was truncated
00033 
00034 //rww (for vc.net, warning numbers changed apparently):
00035 #pragma warning(disable : 4213)         //nonstandard extension used : cast on l-value
00036 #pragma warning(disable : 4245)         //signed/unsigned mismatch
00037 
00038 #endif