Skip to content

Commit

Permalink
Disable C6326: Potential comparison of a constant with another constant
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland authored and jzmaddock committed Oct 27, 2022
1 parent 182742b commit 62dfa02
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions include/boost/math/special_functions/bessel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
#include <boost/math/tools/series.hpp>
#include <boost/math/tools/roots.hpp>

#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{
Expand Down Expand Up @@ -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


1 change: 1 addition & 0 deletions include/boost/math/special_functions/gamma.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 62dfa02

Please sign in to comment.