warning_disable.h 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #if !defined (__ICL)
  2. /* This header is used to turn off warnings of Microsoft compilers generated.
  3. * while building STLport.
  4. * For compiling user code, see stlport/config/_msvc_warnings_off.h.
  5. */
  6. # if (_MSC_VER < 1300) /* VC6/eVC4 */
  7. # pragma warning( disable : 4097 ) /* typedef-name used as based class of (...) */
  8. # pragma warning( disable : 4251 ) /* DLL interface needed */
  9. # pragma warning( disable : 4284 ) /* for -> operator */
  10. # pragma warning( disable : 4503 ) /* decorated name length exceeded, name was truncated */
  11. # pragma warning( disable : 4514 ) /* unreferenced inline function has been removed */
  12. # pragma warning( disable : 4660 ) /* template-class specialization '...' is already instantiated */
  13. # pragma warning( disable : 4701 ) /* local variable 'base' may be used without having been initialized */
  14. # pragma warning( disable : 4710 ) /* function (...) not inlined */
  15. # pragma warning( disable : 4786 ) /* identifier truncated to 255 characters */
  16. # endif
  17. # if (_MSC_VER <= 1310)
  18. # pragma warning( disable : 4511 ) /* copy constructor cannot be generated */
  19. # endif
  20. # if (_MSC_VER < 1300) && defined (UNDER_CE)
  21. # pragma warning( disable : 4201 ) /* nonstandard extension used : nameless struct/union */
  22. # pragma warning( disable : 4214 ) /* nonstandard extension used : bit field types other than int */
  23. # endif
  24. /* Suppress warnings emitted from Windows CE SDK headers. */
  25. # if (_MSC_VER >= 1400) && defined (UNDER_CE)
  26. # pragma warning( disable : 4115 ) /* Named type definition in parentheses. */
  27. # pragma warning( disable : 4201 ) /* Nameless struct/union. */
  28. # pragma warning( disable : 4214 ) /* Bit field types other than int. */
  29. # pragma warning( disable : 4290 ) /* C++ exception specification ignored. */
  30. # pragma warning( disable : 4430 ) /* Missing type specifier, int assumed. */
  31. # pragma warning( disable : 4431 ) /* Missing type specifier, int assumed. */
  32. # endif
  33. # pragma warning( disable : 4075 ) /* initializers put in unrecognized initialization area */
  34. /* This warning is disable only for the c_locale_win32.c file compilation: */
  35. # pragma warning( disable : 4100 ) /* unreferenced formal parameter */
  36. # pragma warning( disable : 4127 ) /* conditional expression is constant */
  37. # pragma warning( disable : 4146 ) /* unary minus applied to unsigned type */
  38. # pragma warning( disable : 4245 ) /* conversion from 'enum ' to 'unsigned int', signed/unsigned mismatch */
  39. # pragma warning( disable : 4244 ) /* implicit conversion: possible loss of data */
  40. # pragma warning( disable : 4512 ) /* assignment operator could not be generated */
  41. # pragma warning( disable : 4571 ) /* catch(...) blocks compiled with /EHs do not catch or re-throw Structured Exceptions */
  42. # pragma warning( disable : 4702 ) /* unreachable code (appears in release with warning level4) */
  43. #else
  44. # pragma warning( disable : 69 ) /* integer conversion resulted in truncation */
  45. # pragma warning( disable : 174 ) /* expression has no effect */
  46. # pragma warning( disable : 279 ) /* controling expression is constant */
  47. # pragma warning( disable : 383 ) /* reference to temporary used */
  48. # pragma warning( disable : 444 ) /* destructor for base class "..." is not virtual*/
  49. # pragma warning( disable : 810 ) /* conversion from "int" to "char" may lose significant bits */
  50. # pragma warning( disable : 981 ) /* operands are evaluated in unspecified order */
  51. # pragma warning( disable : 1418 ) /* external definition with no prior declaration */
  52. # pragma warning( disable : 1419 ) /* external declaration in primary source file */
  53. # pragma warning( disable : 1572 ) /* floating-point equality and inequality comparisons are unreliable */
  54. # pragma warning( disable : 1682 ) /* implicit conversion of a 64-bit integral type to a smaller integral type */
  55. # pragma warning( disable : 1683 ) /* explicit conversion of a 64-bit integral type to a smaller integral type */
  56. #endif