|
|
|||
File indexing completed on 2025-12-16 09:44:43
0001 // Copyright John Maddock 2008 0002 // Use, modification, and distribution is subject to the Boost Software 0003 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 0004 // http://www.boost.org/LICENSE_1_0.txt) 0005 // 0006 // This file exists to turn off some overly-pedantic warning emitted 0007 // by certain compilers. You should include this header only in: 0008 // 0009 // * A test case, before any other headers, or, 0010 // * A library source file before any other headers. 0011 // 0012 // IT SHOULD NOT BE INCLUDED BY ANY BOOST HEADER. 0013 // 0014 // YOU SHOULD NOT INCLUDE IT IF YOU CAN REASONABLY FIX THE WARNING. 0015 // 0016 // The only warnings disabled here are those that are: 0017 // 0018 // * Quite unreasonably pedantic. 0019 // * Generally only emitted by a single compiler. 0020 // * Can't easily be fixed: for example if the vendors own std lib 0021 // code emits these warnings! 0022 // 0023 // Note that THIS HEADER MUST NOT INCLUDE ANY OTHER HEADERS: 0024 // not even std library ones! Doing so may turn the warning 0025 // off too late to be of any use. For example the VC++ C4996 0026 // warning can be emitted from <iosfwd> if that header is included 0027 // before or by this one :-( 0028 // 0029 0030 #ifndef BOOST_CONFIG_WARNING_DISABLE_HPP 0031 #define BOOST_CONFIG_WARNING_DISABLE_HPP 0032 0033 #if defined(_MSC_VER) && (_MSC_VER >= 1400) 0034 // Error 'function': was declared deprecated 0035 // http://msdn2.microsoft.com/en-us/library/ttcz0bys(VS.80).aspx 0036 // This error is emitted when you use some perfectly conforming 0037 // std lib functions in a perfectly correct way, and also by 0038 // some of Microsoft's own std lib code ! 0039 # pragma warning(disable:4996) 0040 #endif 0041 #if defined(__INTEL_COMPILER) || defined(__ICL) 0042 // As above: gives warning when a "deprecated" 0043 // std library function is encountered. 0044 # pragma warning(disable:1786) 0045 #endif 0046 0047 #endif // BOOST_CONFIG_WARNING_DISABLE_HPP
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|