123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #ifndef BOOST_LOG_UTILITY_UNUSED_VARIABLE_HPP_INCLUDED_
- #define BOOST_LOG_UTILITY_UNUSED_VARIABLE_HPP_INCLUDED_
- #include <boost/log/detail/config.hpp>
- #ifdef BOOST_HAS_PRAGMA_ONCE
- #pragma once
- #endif
- #if defined(__GNUC__)
- #define BOOST_LOG_UNUSED_VARIABLE(type, var, initializer) __attribute__((unused)) type var initializer
- #else
- namespace boost {
- BOOST_LOG_OPEN_NAMESPACE
- namespace aux {
- template< typename T >
- BOOST_FORCEINLINE void no_unused_warnings(T const&) BOOST_NOEXCEPT {}
- }
- BOOST_LOG_CLOSE_NAMESPACE
- }
- #define BOOST_LOG_UNUSED_VARIABLE(type, var, initializer) type var initializer; ::boost::log::aux::no_unused_warnings(var)
- #endif
- #endif
|