Suppress some of the Level 4 MSVC warnings in the basic_pointerbuf.hpp (refs #9271)

[SVN r86377]
This commit is contained in:
Antony Polukhin
2013-10-21 06:46:01 +00:00
parent 524232ebab
commit 39d1abe754

View File

@@ -23,6 +23,11 @@
namespace boost { namespace detail {
#ifdef BOOST_MSVC
// VC mistakenly assumes that `setbuf` and other functions are not referenced.
#pragma warning(disable: 4505) //Unreferenced local function has been removed
#endif
//
// class basic_pointerbuf:
// acts as a stream buffer which wraps around a pair of pointers:
@@ -129,6 +134,9 @@ basic_pointerbuf<charT, BufferT>::seekpos(pos_type sp, ::std::ios_base::openmode
return pos_type(off_type(-1));
}
#ifdef BOOST_MSVC
#pragma warning(pop)
#endif
}} // namespace boost::detail