From 92ff08b873010b987155b0c1734f8f271edef9a7 Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Sat, 7 Dec 2013 12:09:22 +0100 Subject: [PATCH] bind: silence warning with gcc --- include/boost/bind/arg.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/boost/bind/arg.hpp b/include/boost/bind/arg.hpp index 797e2b7..b761b21 100644 --- a/include/boost/bind/arg.hpp +++ b/include/boost/bind/arg.hpp @@ -22,6 +22,11 @@ #include #include +#if BOOST_GCC >= 40700 +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-local-typedefs" +#endif + namespace boost { @@ -57,4 +62,9 @@ template< int I > struct is_placeholder< arg (*) () > } // namespace boost +#if BOOST_GCC >= 40700 +#pragma GCC diagnostic pop +#endif + + #endif // #ifndef BOOST_BIND_ARG_HPP_INCLUDED