1
0
forked from boostorg/bind

Warning suppressions in Boost.Bind.

Fixes #3601.

[SVN r57542]
This commit is contained in:
John Maddock
2009-11-10 13:26:43 +00:00
parent f3da835e0b
commit f02b090fe8
2 changed files with 19 additions and 0 deletions

View File

@@ -207,6 +207,13 @@ public:
} }
}; };
#ifdef BOOST_MSVC
// MSVC is bright enough to realise that the parameter rhs
// in operator==may be unused for some template argument types:
#pragma warning(push)
#pragma warning(disable:4100)
#endif
template< class A1 > class list1: private storage1< A1 > template< class A1 > class list1: private storage1< A1 >
{ {
private: private:
@@ -846,6 +853,10 @@ public:
} }
}; };
#ifdef BOOST_MSVC
#pragma warning(pop)
#endif
// bind_t // bind_t
#ifndef BOOST_NO_VOID_RETURNS #ifndef BOOST_NO_VOID_RETURNS
@@ -1654,7 +1665,14 @@ template< class M, class T > struct add_cref< M T::*, 0 >
template< class M, class T > struct add_cref< M T::*, 1 > template< class M, class T > struct add_cref< M T::*, 1 >
{ {
#ifdef BOOST_MSVC
#pragma warning(push)
#pragma warning(disable:4180)
#endif
typedef M const & type; typedef M const & type;
#ifdef BOOST_MSVC
#pragma warning(pop)
#endif
}; };
template< class R, class T > struct add_cref< R (T::*) (), 1 > template< class R, class T > struct add_cref< R (T::*) (), 1 >

View File

@@ -5,6 +5,7 @@
# pragma warning(disable: 4710) // function not inlined # pragma warning(disable: 4710) // function not inlined
# pragma warning(disable: 4711) // function selected for automatic inline expansion # pragma warning(disable: 4711) // function selected for automatic inline expansion
# pragma warning(disable: 4514) // unreferenced inline removed # pragma warning(disable: 4514) // unreferenced inline removed
# pragma warning(disable: 4100) // unreferenced formal parameter (it is referenced!)
#endif #endif
// Copyright (c) 2006 Douglas Gregor <doug.gregor@gmail.com> // Copyright (c) 2006 Douglas Gregor <doug.gregor@gmail.com>