From: Paul A B. <pbr...@us...> - 2006-08-14 11:35:25
|
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/math/special_functions In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11183/boost-sandbox/boost/math/special_functions Modified Files: Tag: math_toolkit gamma.hpp Log Message: Quieted warning unreachable code. Index: gamma.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/math/special_functions/Attic/gamma.hpp,v retrieving revision 1.1.2.16 retrieving revision 1.1.2.17 diff -u -d -r1.1.2.16 -r1.1.2.17 --- gamma.hpp 13 Aug 2006 17:42:17 -0000 1.1.2.16 +++ gamma.hpp 14 Aug 2006 11:35:20 -0000 1.1.2.17 @@ -10,7 +10,7 @@ # pragma warning(push) # pragma warning(disable: 4127 4701) // For lexical_cast, until fixed in 1.35? - // conditional expression is constant. + // conditional expression is constant & // Potentially uninitialized local variable 'name' used #endif #include <boost/lexical_cast.hpp> @@ -42,6 +42,10 @@ #include <typeinfo> #endif +#ifdef BOOST_MSVC +# pragma warning(push) +# pragma warning(disable: 4702) // unreachable code (return after domain_error throw). +#endif namespace boost{ namespace math{ @@ -1026,6 +1030,10 @@ } // namespace math } // namespace boost +#ifdef BOOST_MSVC +# pragma warning(pop) +#endif + #include <boost/math/special_functions/detail/igamma_inverse.hpp> #include <boost/math/special_functions/detail/gamma_inva.hpp> #include <boost/math/special_functions/erf.hpp> |