diff --git a/include/boost/math/special_functions/bessel.hpp b/include/boost/math/special_functions/bessel.hpp index 837f39253a..35ad350262 100644 --- a/include/boost/math/special_functions/bessel.hpp +++ b/include/boost/math/special_functions/bessel.hpp @@ -36,6 +36,11 @@ #include #include +#ifdef _MSC_VER +# pragma warning(push) +# pragma warning(disable: 6326) // potential comparison of a constant with another constant +#endif + namespace boost{ namespace math{ namespace detail{ @@ -754,6 +759,10 @@ inline OutputIterator cyl_neumann_zero(T v, } // namespace math } // namespace boost +#ifdef _MSC_VER +# pragma warning(pop) +#endif + #endif // BOOST_MATH_BESSEL_HPP diff --git a/include/boost/math/special_functions/gamma.hpp b/include/boost/math/special_functions/gamma.hpp index 4af5dfa314..71e8473cf8 100644 --- a/include/boost/math/special_functions/gamma.hpp +++ b/include/boost/math/special_functions/gamma.hpp @@ -44,6 +44,7 @@ # pragma warning(disable: 4702) // unreachable code (return after domain_error throw). # pragma warning(disable: 4127) // conditional expression is constant. # pragma warning(disable: 4100) // unreferenced formal parameter. +# pragma warning(disable: 6326) // potential comparison of a constant with another constant // Several variables made comments, // but some difficulty as whether referenced on not may depend on macro values. // So to be safe, 4100 warnings suppressed.