/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*
*/
/* This header turns off warnings that STLport headers generate for compiled
 * user code.
 */

#if defined (_STLP_MSVC)
#  if (_STLP_MSVC > 1000)
#    if defined (_STLP_USE_MSVC6_MEM_T_BUG_WORKAROUND)
/*
 * 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 < 1200) // VC5 and earlier
#      pragma warning( disable : 4389 ) // '==' : signed/unsigned mismatch
// multiple copy constructors/assignment operators specified,
// with member templates are bogus...
#      pragma warning( disable : 4521 )
#      pragma warning( disable : 4522 )
#    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
#  endif
#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
