ReactOS  0.4.14-dev-999-g61c8d34
_warnings_off.h
Go to the documentation of this file.
1 /* This header turns off warnings that STLport headers generate for compiled
2  * user code.
3  */
4 
5 #if defined (_STLP_MSVC)
6 # if defined (_STLP_USE_MSVC6_MEM_T_BUG_WORKAROUND) || \
7  defined (_STLP_SIGNAL_RUNTIME_COMPATIBILITY) || defined (_STLP_CHECK_RUNTIME_COMPATIBILITY)
8 /*
9  * 31/07/2004: dums - now that we do not export the basic_string class anymore but only a base class
10  * we have to disable this warning as the string are used as data members type of many iostream classes.
11  */
12 # pragma warning ( disable : 4251 ) // ignore template classes being exported in .dll's
13 # endif
14 
15 # if (_STLP_MSVC < 1300) // VC6, eVC3, eVC4
16 # pragma warning( disable : 4097 ) // typedef-name used as based class of (...)
17 # pragma warning( disable : 4231 ) // non standard extension : 'extern' before template instanciation
18 # pragma warning( disable : 4244 ) // implicit conversion: possible loss of data
19 # pragma warning( disable : 4284 ) // for -> operator
20 //This warning is necessary because of the native platform headers:
21 # pragma warning( disable : 4290 ) // c++ exception specification ignored
22 # pragma warning( disable : 4514 ) // unreferenced inline function has been removed
23 # pragma warning( disable : 4660 ) // template-class specialization '...' is already instantiated
24 # pragma warning( disable : 4701 ) // local variable '...' may be used without having been initialized
25 # pragma warning( disable : 4710 ) // function (...) not inlined
26 # pragma warning( disable : 4786 ) // identifier truncated to 255 characters
27 # endif
28 
29 # if (_STLP_MSVC < 1400)
30 # pragma warning( disable : 4511 ) // copy constructor cannot be generated
31 # endif
32 
33 //Pool of common warnings for all MSVC supported versions:
34 //Many are only useful if warning level is set to 4.
35 # pragma warning( disable : 4100 ) // unreferenced formal parameter
36 # pragma warning( disable : 4127 ) // conditional expression is constant
37 # pragma warning( disable : 4146 ) // unary minus operator applied to unsigned type, result still unsigned
38 # pragma warning( disable : 4245 ) // conversion from 'enum ' to 'unsigned int', signed/unsigned mismatch
39 # pragma warning( disable : 4355 ) // this used in base member initializer list (used in rope implementation)
40 # pragma warning( disable : 4510 ) // default constructor cannot be generated
41 # pragma warning( disable : 4512 ) // assignment operator could not be generated
42 # pragma warning( disable : 4571 ) // catch(...) blocks compiled with /EHs do not catch or re-throw Structured Exceptions
43 # pragma warning( disable : 4610 ) // struct '...' can never be instantiated - user defined construtor required
44 #elif defined (__BORLANDC__)
45 # pragma option -w-ccc // -w-8008 Condition is always true OR Condition is always false
46 # pragma option -w-inl // -w-8027 Functions containing reserved words are not expanded inline
47 # pragma option -w-ngu // -w-8041 Negating unsigned value
48 # pragma option -w-pow // -w-8062 Previous options and warnings not restored
49 # pragma option -w-rch // -w-8066 Unreachable code
50 # pragma option -w-par // -w-8057 Parameter 'parameter' is never used
51 #endif