• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //  disable_warnings.hpp  --------------------------------------------------------------//
2 
3 //  Copyright Beman Dawes 2011
4 
5 //  Distributed under the Boost Software License, Version 1.0.
6 //  See http://www.boost.org/LICENSE_1_0.txt
7 
8 //--------------------------------------------------------------------------------------//
9 
10 #ifdef  _MSC_VER
11 
12 #ifndef _SCL_SECURE_NO_WARNINGS
13 # define _SCL_SECURE_NO_WARNINGS
14 #endif
15 
16 #ifndef _CRT_SECURE_NO_WARNINGS
17 # define _CRT_SECURE_NO_WARNINGS
18 #endif
19 
20 # pragma warning(push)
21 
22 // triggered by boost/detail/lightweight_test.hpp
23 # pragma warning( disable : 4640 )  // ... construction of local static object is not thread-safe
24 
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
33 #endif
34