1 // disable_warnings.hpp --------------------------------------------------------------//
3 // Copyright Beman Dawes 2011
5 // Distributed under the Boost Software License, Version 1.0.
6 // See http://www.boost.org/LICENSE_1_0.txt
8 //--------------------------------------------------------------------------------------//
12 #ifndef _SCL_SECURE_NO_WARNINGS
13 # define _SCL_SECURE_NO_WARNINGS
16 #ifndef _CRT_SECURE_NO_WARNINGS
17 # define _CRT_SECURE_NO_WARNINGS
20 # pragma warning(push)
22 // triggered by boost/detail/lightweight_test.hpp
23 # pragma warning( disable : 4640 ) // ... construction of local static object is not thread-safe
25 // triggered by Microsoft's own headers, so disable
26 # pragma warning( disable : 4820 ) // padding added after data member
27 # pragma warning( disable : 4548 ) // expression before comma has no effect
28 # pragma warning( disable : 4668 ) // ... is not defined as a preprocessor macro
29 # pragma warning( disable : 4514 ) // ... unreferenced inline function has been removed
30 # pragma warning( disable : 4710 ) // ... function not inlined
31 # pragma warning( disable : 4986 ) // ... exception specification does not match previous declaration
32 # pragma warning( disable : 4711 ) // ... selected for automatic inline expansion