Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86377 - trunk/boost/detail
From: antoshkka_at_[hidden]
Date: 2013-10-21 02:46:01


Author: apolukhin
Date: 2013-10-21 02:46:01 EDT (Mon, 21 Oct 2013)
New Revision: 86377
URL: http://svn.boost.org/trac/boost/changeset/86377

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

Text files modified:
   trunk/boost/detail/basic_pointerbuf.hpp | 8 ++++++++
   1 files changed, 8 insertions(+), 0 deletions(-)

Modified: trunk/boost/detail/basic_pointerbuf.hpp
==============================================================================
--- trunk/boost/detail/basic_pointerbuf.hpp Sun Oct 20 14:27:56 2013 (r86376)
+++ trunk/boost/detail/basic_pointerbuf.hpp 2013-10-21 02:46:01 EDT (Mon, 21 Oct 2013) (r86377)
@@ -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 @@
    return pos_type(off_type(-1));
 }
 
+#ifdef BOOST_MSVC
+#pragma warning(pop)
+#endif
 
 }} // namespace boost::detail
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk