Pyrogenesis  trunk
suppress_boost_warnings.h
Go to the documentation of this file.
1 /* Copyright (c) 2010 Wildfire Games
2  *
3  * Permission is hereby granted, free of charge, to any person obtaining
4  * a copy of this software and associated documentation files (the
5  * "Software"), to deal in the Software without restriction, including
6  * without limitation the rights to use, copy, modify, merge, publish,
7  * distribute, sublicense, and/or sell copies of the Software, and to
8  * permit persons to whom the Software is furnished to do so, subject to
9  * the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included
12  * in all copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18  * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21  */
22 
23 // rationale: boost is only included from the PCH, but warnings are still
24 // raised when templates are instantiated (e.g. vfs_lookup.cpp),
25 // so include this header from such source files as well.
26 
27 #include "lib/sysdep/compiler.h" // ICC_VERSION
28 #include "lib/sysdep/arch.h" // ARCH_IA32
29 
30 #if MSC_VERSION
31 # pragma warning(disable:4710) // function not inlined
32 #endif
33 #if ICC_VERSION
34 # pragma warning(push)
35 # pragma warning(disable:82) // storage class is not first
36 # pragma warning(disable:193) // zero used for undefined preprocessing identifier
37 # pragma warning(disable:304) // access control not specified
38 # pragma warning(disable:367) // duplicate friend declaration
39 # pragma warning(disable:444) // destructor for base class is not virtual
40 # pragma warning(disable:522) // function redeclared inline after being called
41 # pragma warning(disable:811) // exception specification for implicitly declared virtual function is incompatible with that of overridden function
42 # pragma warning(disable:1879) // unimplemented pragma ignored
43 # pragma warning(disable:2270) // the declaration of the copy assignment operator has been suppressed
44 # pragma warning(disable:2273) // the declaration of the copy constructor has been suppressed
45 # if ARCH_IA32
46 # pragma warning(disable:693) // calling convention specified here is ignored
47 # endif
48 #endif