Go to the documentation of this file. 1 #ifndef INCLUDED_PCH_WARNINGS
2 #define INCLUDED_PCH_WARNINGS
8 # pragma warning(disable:4201) // nameless struct (Matrix3D)
9 # pragma warning(disable:4244) // conversion from uintN to uint8
11 # pragma warning(disable:4103) // alignment changed after including header (boost has #pragma pack/pop in separate headers)
12 # pragma warning(disable:4127) // conditional expression is constant; rationale: see STMT in lib.h.
13 # pragma warning(disable:4324) // structure was padded due to __declspec(align())
14 # pragma warning(disable:4351) // yes, default init of array entries is desired
15 # pragma warning(disable:4355) // 'this' used in base member initializer list
16 # pragma warning(disable:4718) // recursive call has no side effects, deleting
17 # pragma warning(disable:4786) // identifier truncated to 255 chars
18 # pragma warning(disable:4996) // function is deprecated
20 # if MSC_VERSION >= 1400
21 # pragma warning(disable:6011) // dereferencing NULL pointer
22 # pragma warning(disable:6246) // local declaration hides declaration of the same name in outer scope
23 # pragma warning(disable:6326) // potential comparison of a constant with another constant
24 # pragma warning(disable:6334) // sizeof operator applied to an expression with an operator might yield unexpected results
28 # pragma warning(disable:383) // value copied to temporary, reference to temporary used
29 # pragma warning(disable:981) // operands are evaluated in unspecified order
30 # pragma warning(disable:1418) // external function definition with no prior declaration (raised for all non-static function templates)
31 # pragma warning(disable:1572) // floating-point equality and inequality comparisons are unreliable
32 # pragma warning(disable:1684) // conversion from pointer to same-sized integral type
33 # pragma warning(disable:1786) // function is deprecated (disabling 4996 isn't sufficient)
34 # pragma warning(disable:2415) // variable of static storage duration was declared but never referenced (raised by Boost)
37 # pragma warning(default:4062) // enumerator is not handled
38 # pragma warning(default:4254) // [bit field] conversion, possible loss of data
39 # pragma warning(default:4265) // class has virtual functions, but destructor is not virtual
40 # pragma warning(default:4296) // [unsigned comparison vs. 0 =>] expression is always false
41 # pragma warning(default:4545 4546 4547 4549) // ill-formed comma expressions; exclude 4548 since _SECURE_SCL triggers it frequently
42 # pragma warning(default:4557) // __assume contains effect
44 # pragma warning(default:4836) // local types or unnamed types cannot be used as template arguments
45 # pragma warning(default:4905) // wide string literal cast to LPSTR
46 # pragma warning(default:4906) // string literal cast to LPWSTR
47 # pragma warning(default:4928) // illegal copy-initialization; more than one user-defined conversion has been implicitly applied
48 # pragma warning(default:4946) // reinterpret_cast used between related classes
57 #endif // #ifndef INCLUDED_PCH_WARNINGS