aboutsummaryrefslogtreecommitdiff
path: root/stlport/stl/config/_warnings_off.h
blob: 77e9815ebc4efc0cb5f368c847d575c8238a0e98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/* This header turns off warnings that STLport headers generate for compiled
 * user code.
 */

#if defined (_STLP_MSVC)
#  if defined (_STLP_USE_MSVC6_MEM_T_BUG_WORKAROUND) || \
      defined (_STLP_SIGNAL_RUNTIME_COMPATIBILITY) || defined (_STLP_CHECK_RUNTIME_COMPATIBILITY)
/*
 * 31/07/2004: dums - now that we do not export the basic_string class anymore but only a base class
 * we have to disable this warning as the string are used as data members type of many iostream classes.
 */
#    pragma warning ( disable : 4251 )  // ignore template classes being exported in .dll's
#  endif

#  if (_STLP_MSVC < 1300) // VC6, eVC3, eVC4
#    pragma warning( disable : 4097 ) // typedef-name used as based class of (...)
#    pragma warning( disable : 4231 ) // non standard extension : 'extern' before template instanciation
#    pragma warning( disable : 4244 ) // implicit conversion: possible loss of data
#    pragma warning( disable : 4284 ) // for -> operator
//This warning is necessary because of the native platform headers:
#    pragma warning( disable : 4290 ) // c++ exception specification ignored
#    pragma warning( disable : 4514 ) // unreferenced inline function has been removed
#    pragma warning( disable : 4660 ) // template-class specialization '...' is already instantiated
#    pragma warning( disable : 4701 ) // local variable '...' may be used without having been initialized
#    pragma warning( disable : 4710 ) // function (...) not inlined
#    pragma warning( disable : 4786 ) // identifier truncated to 255 characters
#  endif

#  if (_STLP_MSVC < 1400)
#    pragma warning( disable : 4511 ) // copy constructor cannot be generated
#  endif

//Pool of common warnings for all MSVC supported versions:
//Many are only useful if warning level is set to 4.
#  pragma warning( disable : 4100 ) // unreferenced formal parameter
#  pragma warning( disable : 4127 ) // conditional expression is constant
#  pragma warning( disable : 4146 ) // unary minus operator applied to unsigned type, result still unsigned
#  pragma warning( disable : 4245 ) // conversion from 'enum ' to 'unsigned int', signed/unsigned mismatch
#  pragma warning( disable : 4355 ) // this used in base member initializer list (used in rope implementation)
#  pragma warning( disable : 4510 ) // default constructor cannot be generated
#  pragma warning( disable : 4512 ) // assignment operator could not be generated
#  pragma warning( disable : 4571 ) // catch(...) blocks compiled with /EHs do not catch or re-throw Structured Exceptions
#  pragma warning( disable : 4610 ) // struct '...' can never be instantiated - user defined construtor required
#elif defined (__BORLANDC__)
#  pragma option -w-ccc // -w-8008 Condition is always true OR Condition is always false
#  pragma option -w-inl // -w-8027 Functions containing reserved words are not expanded inline
#  pragma option -w-ngu // -w-8041 Negating unsigned value
#  pragma option -w-pow // -w-8062 Previous options and warnings not restored
#  pragma option -w-rch // -w-8066 Unreachable code
#  pragma option -w-par // -w-8057 Parameter 'parameter' is never used
#endif