|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 /* This header is used to turn off warnings of Microsoft compilers generated. |
|
18 * while building STLport. |
|
19 * For compiling user code, see stlport/config/_msvc_warnings_off.h. |
|
20 */ |
|
21 |
|
22 #if (_MSC_VER < 1200) // VC5 and before |
|
23 # pragma warning( disable : 4018 ) // signed/unsigned mismatch |
|
24 # pragma warning( disable : 4290 ) // c++ exception specification ignored |
|
25 # pragma warning( disable : 4389 ) // '==' : signed/unsigned mismatch |
|
26 # pragma warning( disable : 4610 ) // struct '...' can never be instantiated - user defined constructor required |
|
27 #endif |
|
28 |
|
29 #if (_MSC_VER < 1300) // VC6/eVC4 |
|
30 # pragma warning( disable : 4097 ) // typedef-name used as based class of (...) |
|
31 # pragma warning( disable : 4251 ) // DLL interface needed |
|
32 # pragma warning( disable : 4284 ) // for -> operator |
|
33 # pragma warning( disable : 4503 ) // decorated name length exceeded, name was truncated |
|
34 # pragma warning( disable : 4514 ) // unreferenced inline function has been removed |
|
35 # pragma warning( disable : 4660 ) // template-class specialization '...' is already instantiated |
|
36 # pragma warning( disable : 4701 ) // local variable 'base' may be used without having been initialized |
|
37 # pragma warning( disable : 4710 ) // function (...) not inlined |
|
38 # pragma warning( disable : 4786 ) // identifier truncated to 255 characters |
|
39 #endif |
|
40 |
|
41 #if (_MSC_VER <= 1310) |
|
42 # pragma warning( disable : 4511 ) // copy constructor cannot be generated |
|
43 #endif |
|
44 |
|
45 #if (_MSC_VER < 1300) && defined(UNDER_CE) |
|
46 # pragma warning( disable : 4201 ) // nonstandard extension used : nameless struct/union |
|
47 # pragma warning( disable : 4214 ) // nonstandard extension used : bit field types other than int |
|
48 #endif |
|
49 |
|
50 #pragma warning( disable : 4075 ) // initializers put in unrecognized initialization area |
|
51 //This warning is disable only for the c_locale_win32.c file compilation: |
|
52 #pragma warning( disable : 4100 ) // unreferenced formal parameter |
|
53 #pragma warning( disable : 4127 ) // conditional expression is constant |
|
54 #pragma warning( disable : 4146 ) // unary minus applied to unsigned type |
|
55 #pragma warning( disable : 4245 ) // conversion from 'enum ' to 'unsigned int', signed/unsigned mismatch |
|
56 #pragma warning( disable : 4244 ) // implicit conversion: possible loss of data |
|
57 #pragma warning( disable : 4512 ) // assignment operator could not be generated |
|
58 #pragma warning( disable : 4571 ) // catch(...) blocks compiled with /EHs do not catch or re-throw Structured Exceptions |
|
59 #pragma warning( disable : 4702 ) // unreachable code (appears in release with warning level4) |