]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/proto/detail/ignore_unused.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / proto / detail / ignore_unused.hpp
1 ///////////////////////////////////////////////////////////////////////////////
2 /// \file ignore_unused.hpp
3 /// Definintion of ignore_unused, a dummy function for suppressing compiler
4 /// warnings
5 //
6 // Copyright 2008 Eric Niebler. Distributed under the Boost
7 // Software License, Version 1.0. (See accompanying file
8 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9
10 #ifndef BOOST_PROTO_DETAIL_IGNORE_UNUSED_HPP_EAN_03_03_2008
11 #define BOOST_PROTO_DETAIL_IGNORE_UNUSED_HPP_EAN_03_03_2008
12
13 #include <boost/config.hpp>
14
15 #if defined(_MSC_VER)
16 # pragma warning(push)
17 # pragma warning(disable : 4714) // function 'xxx' marked as __forceinline not inlined
18 #endif
19
20 namespace boost { namespace proto
21 {
22 namespace detail
23 {
24 template<typename T>
25 BOOST_FORCEINLINE void ignore_unused(T const &)
26 {}
27 }
28 }}
29
30 #if defined(_MSC_VER)
31 # pragma warning(pop)
32 #endif
33
34 #endif