From 39d1abe7548bf27ea6bc747bfdec1a6d29ba5247 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Mon, 21 Oct 2013 06:46:01 +0000 Subject: [PATCH] Suppress some of the Level 4 MSVC warnings in the basic_pointerbuf.hpp (refs #9271) [SVN r86377] --- include/boost/detail/basic_pointerbuf.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/boost/detail/basic_pointerbuf.hpp b/include/boost/detail/basic_pointerbuf.hpp index 8b56cbe..6d7893b 100644 --- a/include/boost/detail/basic_pointerbuf.hpp +++ b/include/boost/detail/basic_pointerbuf.hpp @@ -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::seekpos(pos_type sp, ::std::ios_base::openmode return pos_type(off_type(-1)); } +#ifdef BOOST_MSVC +#pragma warning(pop) +#endif }} // namespace boost::detail