Chris@16
|
1 // Copyright John Maddock 2008
|
Chris@16
|
2 // Use, modification, and distribution is subject to the Boost Software
|
Chris@16
|
3 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
Chris@16
|
4 // http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
5 //
|
Chris@16
|
6 // This file exists to turn off some overly-pedantic warning emitted
|
Chris@16
|
7 // by certain compilers. You should include this header only in:
|
Chris@16
|
8 //
|
Chris@16
|
9 // * A test case, before any other headers, or,
|
Chris@16
|
10 // * A library source file before any other headers.
|
Chris@16
|
11 //
|
Chris@16
|
12 // IT SHOULD NOT BE INCLUDED BY ANY BOOST HEADER.
|
Chris@16
|
13 //
|
Chris@16
|
14 // YOU SHOULD NOT INCLUDE IT IF YOU CAN REASONABLY FIX THE WARNING.
|
Chris@16
|
15 //
|
Chris@16
|
16 // The only warnings disabled here are those that are:
|
Chris@16
|
17 //
|
Chris@16
|
18 // * Quite unreasonably pedantic.
|
Chris@16
|
19 // * Generally only emitted by a single compiler.
|
Chris@16
|
20 // * Can't easily be fixed: for example if the vendors own std lib
|
Chris@16
|
21 // code emits these warnings!
|
Chris@16
|
22 //
|
Chris@16
|
23 // Note that THIS HEADER MUST NOT INCLUDE ANY OTHER HEADERS:
|
Chris@16
|
24 // not even std library ones! Doing so may turn the warning
|
Chris@16
|
25 // off too late to be of any use. For example the VC++ C4996
|
Chris@16
|
26 // warning can be emitted from <iosfwd> if that header is included
|
Chris@16
|
27 // before or by this one :-(
|
Chris@16
|
28 //
|
Chris@16
|
29
|
Chris@16
|
30 #ifndef BOOST_CONFIG_WARNING_DISABLE_HPP
|
Chris@16
|
31 #define BOOST_CONFIG_WARNING_DISABLE_HPP
|
Chris@16
|
32
|
Chris@16
|
33 #if defined(_MSC_VER) && (_MSC_VER >= 1400)
|
Chris@16
|
34 // Error 'function': was declared deprecated
|
Chris@16
|
35 // http://msdn2.microsoft.com/en-us/library/ttcz0bys(VS.80).aspx
|
Chris@16
|
36 // This error is emitted when you use some perfectly conforming
|
Chris@16
|
37 // std lib functions in a perfectly correct way, and also by
|
Chris@16
|
38 // some of Microsoft's own std lib code !
|
Chris@16
|
39 # pragma warning(disable:4996)
|
Chris@16
|
40 #endif
|
Chris@16
|
41 #if defined(__INTEL_COMPILER) || defined(__ICL)
|
Chris@16
|
42 // As above: gives warning when a "deprecated"
|
Chris@16
|
43 // std library function is encountered.
|
Chris@16
|
44 # pragma warning(disable:1786)
|
Chris@16
|
45 #endif
|
Chris@16
|
46
|
Chris@16
|
47 #endif // BOOST_CONFIG_WARNING_DISABLE_HPP
|