Chris@16: // Copyright John Maddock 2008 Chris@16: // Use, modification, and distribution is subject to the Boost Software Chris@16: // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: // Chris@16: // This file exists to turn off some overly-pedantic warning emitted Chris@16: // by certain compilers. You should include this header only in: Chris@16: // Chris@16: // * A test case, before any other headers, or, Chris@16: // * A library source file before any other headers. Chris@16: // Chris@16: // IT SHOULD NOT BE INCLUDED BY ANY BOOST HEADER. Chris@16: // Chris@16: // YOU SHOULD NOT INCLUDE IT IF YOU CAN REASONABLY FIX THE WARNING. Chris@16: // Chris@16: // The only warnings disabled here are those that are: Chris@16: // Chris@16: // * Quite unreasonably pedantic. Chris@16: // * Generally only emitted by a single compiler. Chris@16: // * Can't easily be fixed: for example if the vendors own std lib Chris@16: // code emits these warnings! Chris@16: // Chris@16: // Note that THIS HEADER MUST NOT INCLUDE ANY OTHER HEADERS: Chris@16: // not even std library ones! Doing so may turn the warning Chris@16: // off too late to be of any use. For example the VC++ C4996 Chris@16: // warning can be emitted from if that header is included Chris@16: // before or by this one :-( Chris@16: // Chris@16: Chris@16: #ifndef BOOST_CONFIG_WARNING_DISABLE_HPP Chris@16: #define BOOST_CONFIG_WARNING_DISABLE_HPP Chris@16: Chris@16: #if defined(_MSC_VER) && (_MSC_VER >= 1400) Chris@16: // Error 'function': was declared deprecated Chris@16: // http://msdn2.microsoft.com/en-us/library/ttcz0bys(VS.80).aspx Chris@16: // This error is emitted when you use some perfectly conforming Chris@16: // std lib functions in a perfectly correct way, and also by Chris@16: // some of Microsoft's own std lib code ! Chris@16: # pragma warning(disable:4996) Chris@16: #endif Chris@16: #if defined(__INTEL_COMPILER) || defined(__ICL) Chris@16: // As above: gives warning when a "deprecated" Chris@16: // std library function is encountered. Chris@16: # pragma warning(disable:1786) Chris@16: #endif Chris@16: Chris@16: #endif // BOOST_CONFIG_WARNING_DISABLE_HPP