Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67149 - trunk/boost/math/bindings
From: john_at_[hidden]
Date: 2010-12-10 12:43:39


Author: johnmaddock
Date: 2010-12-10 12:43:38 EST (Fri, 10 Dec 2010)
New Revision: 67149
URL: http://svn.boost.org/trac/boost/changeset/67149

Log:
Suppress warnings from external headers.
Text files modified:
   trunk/boost/math/bindings/mpfr.hpp | 16 ++++++++++++++++
   1 files changed, 16 insertions(+), 0 deletions(-)

Modified: trunk/boost/math/bindings/mpfr.hpp
==============================================================================
--- trunk/boost/math/bindings/mpfr.hpp (original)
+++ trunk/boost/math/bindings/mpfr.hpp 2010-12-10 12:43:38 EST (Fri, 10 Dec 2010)
@@ -11,7 +11,23 @@
 #ifndef BOOST_MATH_MPLFR_BINDINGS_HPP
 #define BOOST_MATH_MPLFR_BINDINGS_HPP
 
+#include <boost/config.hpp>
+
+#ifdef BOOST_MSVC
+//
+// We get a lot of warnings from the gmp, mpfr and gmpfrxx headers,
+// disable them here, so we only see warnings from *our* code:
+//
+#pragma warning(push)
+#pragma warning(disable: 4127 4800 4512)
+#endif
+
 #include <gmpfrxx.h>
+
+#ifdef BOOST_MSVC
+#pragma warning(pop)
+#endif
+
 #include <boost/math/tools/precision.hpp>
 #include <boost/math/tools/real_cast.hpp>
 #include <boost/math/policies/policy.hpp>


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