|
Boost-Commit : |
From: pbristow_at_[hidden]
Date: 2007-10-01 06:05:23
Author: pbristow
Date: 2007-10-01 06:05:21 EDT (Mon, 01 Oct 2007)
New Revision: 39636
URL: http://svn.boost.org/trac/boost/changeset/39636
Log:
Surpressed unreachable code warning.
Text files modified:
sandbox/math_toolkit/boost/math/policies/error_handling.hpp | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
Modified: sandbox/math_toolkit/boost/math/policies/error_handling.hpp
==============================================================================
--- sandbox/math_toolkit/boost/math/policies/error_handling.hpp (original)
+++ sandbox/math_toolkit/boost/math/policies/error_handling.hpp 2007-10-01 06:05:21 EDT (Mon, 01 Oct 2007)
@@ -22,11 +22,12 @@
# pragma warning(push) // Quiet warnings in boost/format.hpp
# pragma warning(disable: 4996) // _SCL_SECURE_NO_DEPRECATE
# pragma warning(disable: 4512) // assignment operator could not be generated.
+// And warnings in error handling:
+# pragma warning(disable: 4702) // unreachable code
+// Note that this only occurs when the compiler can deduce code is unreachable,
+// for example when policy macros are used to ignore errors rather than throw.
#endif
#include <boost/format.hpp>
-#ifdef BOOST_MSVC
-# pragma warning(pop)
-#endif
namespace boost{ namespace math{
@@ -498,6 +499,10 @@
} //namespace policies
+#ifdef BOOST_MSVC
+# pragma warning(pop)
+#endif
+
}} // namespaces boost/math
#endif // BOOST_MATH_POLICY_ERROR_HANDLING_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