|
||||
File indexing completed on 2025-01-18 09:39:21
0001 /* 0002 * Copyright Andrey Semashev 2007 - 2015. 0003 * Distributed under the Boost Software License, Version 1.0. 0004 * (See accompanying file LICENSE_1_0.txt or copy at 0005 * http://www.boost.org/LICENSE_1_0.txt) 0006 */ 0007 0008 #include <boost/config/abi_prefix.hpp> 0009 0010 #if !defined(BOOST_LOG_ENABLE_WARNINGS) 0011 0012 #if defined(_MSC_VER) && !defined(__clang__) 0013 0014 #pragma warning(push, 3) 0015 // 'm_A' : class 'A' needs to have dll-interface to be used by clients of class 'B' 0016 #pragma warning(disable: 4251) 0017 // non dll-interface class 'A' used as base for dll-interface class 'B' 0018 #pragma warning(disable: 4275) 0019 // switch statement contains 'default' but no 'case' labels 0020 #pragma warning(disable: 4065) 0021 // 'this' : used in base member initializer list 0022 #pragma warning(disable: 4355) 0023 // 'int' : forcing value to bool 'true' or 'false' (performance warning) 0024 #pragma warning(disable: 4800) 0025 // unreferenced formal parameter 0026 #pragma warning(disable: 4100) 0027 // conditional expression is constant 0028 #pragma warning(disable: 4127) 0029 // default constructor could not be generated 0030 #pragma warning(disable: 4510) 0031 // copy constructor could not be generated 0032 #pragma warning(disable: 4511) 0033 // assignment operator could not be generated 0034 #pragma warning(disable: 4512) 0035 // struct 'A' can never be instantiated - user defined constructor required 0036 #pragma warning(disable: 4610) 0037 // function marked as __forceinline not inlined 0038 #pragma warning(disable: 4714) 0039 // decorated name length exceeded, name was truncated 0040 #pragma warning(disable: 4503) 0041 // declaration of 'A' hides previous local declaration 0042 #pragma warning(disable: 4456) 0043 // declaration of 'A' hides global declaration 0044 #pragma warning(disable: 4459) 0045 // 'X': This function or variable may be unsafe. Consider using Y instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 0046 #pragma warning(disable: 4996) 0047 0048 #elif (defined(__GNUC__) && !(defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)) \ 0049 && (__GNUC__ * 100 + __GNUC_MINOR__) >= 406) || defined(__clang__) 0050 0051 // Note: clang-cl goes here as well, as it seems to support gcc-style warning control pragmas. 0052 0053 #pragma GCC diagnostic push 0054 // 'var' defined but not used 0055 #pragma GCC diagnostic ignored "-Wunused-variable" 0056 // unused parameter 'arg' 0057 #pragma GCC diagnostic ignored "-Wunused-parameter" 0058 // missing initializer for member var 0059 #pragma GCC diagnostic ignored "-Wmissing-field-initializers" 0060 0061 #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 0062 // typedef 'foo' locally defined but not used 0063 #pragma GCC diagnostic ignored "-Wunused-local-typedefs" 0064 #endif 0065 0066 #if defined(__clang__) 0067 // the argument to '__builtin_assume' has side effects that will be discarded 0068 #pragma clang diagnostic ignored "-Wassume" 0069 #endif // defined(__clang__) 0070 0071 #endif 0072 0073 #endif // !defined(BOOST_LOG_ENABLE_WARNINGS)
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |