C++程序  |  62行  |  3.89 KB

#if !defined (__ICL)
/* This header is used to turn off warnings of Microsoft compilers generated.
 * while building STLport.
 * For compiling user code, see stlport/config/_msvc_warnings_off.h.
 */

#  if (_MSC_VER < 1300) /* VC6/eVC4 */
#    pragma warning( disable : 4097 ) /* typedef-name used as based class of (...) */
#    pragma warning( disable : 4251 ) /* DLL interface needed */
#    pragma warning( disable : 4284 ) /* for -> operator */
#    pragma warning( disable : 4503 ) /* decorated name length exceeded, name was truncated */
#    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 'base' 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 (_MSC_VER <= 1310)
#    pragma warning( disable : 4511 ) /* copy constructor cannot be generated */
#  endif

#  if (_MSC_VER < 1300) && defined (UNDER_CE)
#    pragma warning( disable : 4201 ) /* nonstandard extension used : nameless struct/union */
#    pragma warning( disable : 4214 ) /* nonstandard extension used : bit field types other than int */
#  endif

/* Suppress warnings emitted from Windows CE SDK headers. */
#  if (_MSC_VER >= 1400) && defined (UNDER_CE)
#    pragma warning( disable : 4115 )  /* Named type definition in parentheses. */
#    pragma warning( disable : 4201 )  /* Nameless struct/union. */
#    pragma warning( disable : 4214 )  /* Bit field types other than int. */
#    pragma warning( disable : 4290 )  /* C++ exception specification ignored. */
#    pragma warning( disable : 4430 )  /* Missing type specifier, int assumed. */
#    pragma warning( disable : 4431 )  /* Missing type specifier, int assumed. */
#  endif

#  pragma warning( disable : 4075 ) /* initializers put in unrecognized initialization area */
/* This warning is disable only for the c_locale_win32.c file compilation:  */
#  pragma warning( disable : 4100 ) /* unreferenced formal parameter */
#  pragma warning( disable : 4127 ) /* conditional expression is constant */
#  pragma warning( disable : 4146 ) /* unary minus applied to unsigned type */
#  pragma warning( disable : 4245 ) /* conversion from 'enum ' to 'unsigned int', signed/unsigned mismatch */
#  pragma warning( disable : 4244 ) /* implicit conversion: possible loss of data */
#  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 : 4702 ) /* unreachable code (appears in release with warning level4) */
#else
#  pragma warning( disable : 69 )   /* integer conversion resulted in truncation */
#  pragma warning( disable : 174 )  /* expression has no effect */
#  pragma warning( disable : 279 )  /* controling expression is constant */
#  pragma warning( disable : 383 )  /* reference to temporary used */
#  pragma warning( disable : 444 )  /* destructor for base class "..." is not virtual*/
#  pragma warning( disable : 810 )  /* conversion from "int" to "char" may lose significant bits */
#  pragma warning( disable : 981 )  /* operands are evaluated in unspecified order */
#  pragma warning( disable : 1418 ) /* external definition with no prior declaration */
#  pragma warning( disable : 1419 ) /* external declaration in primary source file */
#  pragma warning( disable : 1572 ) /* floating-point equality and inequality comparisons are unreliable */
#  pragma warning( disable : 1682 ) /* implicit conversion of a 64-bit integral type to a smaller integral type */
#  pragma warning( disable : 1683 ) /* explicit conversion of a 64-bit integral type to a smaller integral type */
#endif