Pyrogenesis  trunk
suppress_boost_warnings.h
Go to the documentation of this file.
1 /* Copyright (C) 2020 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 # pragma warning(disable:4626) // assignment operator was implicitly defined as deleted because a base class assignment operator is inaccessible or deleted
33 # pragma warning(disable:4625) // copy constructor was implicitly defined as deleted
34 # pragma warning(disable:4668) // 'symbol' is not defined as a preprocessor macro, replacing with '0' for 'directives'
35 # pragma warning(disable:5027) // 'type': move assignment operator was implicitly defined as deleted
36 # pragma warning(disable:4365) // signed/unsigned mismatch
37 # pragma warning(disable:4619) // there is no warning for 'warning'
38 # pragma warning(disable:5031) // #pragma warning(pop): likely mismatch, popping warning state pushed in different file
39 # pragma warning(disable:5026) // 'type': move constructor was implicitly defined as deleted
40 # pragma warning(disable:4820) // incorrect padding
41 # pragma warning(disable:4514) // unreferenced inlined function has been removed
42 # pragma warning(disable:4571) // Informational: catch(...) semantics changed since Visual C++ 7.1; structured exceptions (SEH) are no longer caught
43 #endif
44 #if ICC_VERSION
45 # pragma warning(push)
46 # pragma warning(disable:82) // storage class is not first
47 # pragma warning(disable:193) // zero used for undefined preprocessing identifier
48 # pragma warning(disable:304) // access control not specified
49 # pragma warning(disable:367) // duplicate friend declaration
50 # pragma warning(disable:444) // destructor for base class is not virtual
51 # pragma warning(disable:522) // function redeclared inline after being called
52 # pragma warning(disable:811) // exception specification for implicitly declared virtual function is incompatible with that of overridden function
53 # pragma warning(disable:1879) // unimplemented pragma ignored
54 # pragma warning(disable:2270) // the declaration of the copy assignment operator has been suppressed
55 # pragma warning(disable:2273) // the declaration of the copy constructor has been suppressed
56 # if ARCH_IA32
57 # pragma warning(disable:693) // calling convention specified here is ignored
58 # endif
59 #endif