File indexing completed on 2025-01-18 09:39:29
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifndef BOOST_LOG_UTILITY_UNUSED_VARIABLE_HPP_INCLUDED_
0016 #define BOOST_LOG_UTILITY_UNUSED_VARIABLE_HPP_INCLUDED_
0017
0018 #include <boost/log/detail/config.hpp>
0019
0020 #ifdef BOOST_HAS_PRAGMA_ONCE
0021 #pragma once
0022 #endif
0023
0024 #if defined(__GNUC__)
0025
0026
0027 #define BOOST_LOG_UNUSED_VARIABLE(type, var, initializer) __attribute__((unused)) type var initializer
0028
0029 #else
0030
0031 namespace boost {
0032
0033 BOOST_LOG_OPEN_NAMESPACE
0034
0035 namespace aux {
0036
0037 template< typename T >
0038 BOOST_FORCEINLINE void no_unused_warnings(T const&) BOOST_NOEXCEPT {}
0039
0040 }
0041
0042 BOOST_LOG_CLOSE_NAMESPACE
0043
0044 }
0045
0046
0047 #define BOOST_LOG_UNUSED_VARIABLE(type, var, initializer) type var initializer; ::boost::log::aux::no_unused_warnings(var)
0048
0049 #endif
0050
0051 #endif