Skip to content

Commit

Permalink
Ignore warnings from boost.math
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed May 14, 2024
1 parent af07f99 commit 51bf7db
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions test/test_complex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,33 @@
// https://www.boost.org/LICENSE_1_0.txt

#include <boost/decimal.hpp>

// Propogates up from boost.math
#define _SILENCE_CXX23_DENORM_DEPRECATION_WARNING

#if defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wold-style-cast"
# pragma clang diagnostic ignored "-Wundef"
# pragma clang diagnostic ignored "-Wconversion"
# pragma clang diagnostic ignored "-Wsign-conversion"
# pragma clang diagnostic ignored "-Wfloat-equal"
# pragma clang diagnostic ignored "-Wfloat-conversion"

# if (__clang_major__ >= 10 && !defined(__APPLE__)) || __clang_major__ >= 13
# pragma clang diagnostic ignored "-Wdeprecated-copy"
# endif

#elif defined(__GNUC__)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wold-style-cast"
# pragma GCC diagnostic ignored "-Wundef"
# pragma GCC diagnostic ignored "-Wconversion"
# pragma GCC diagnostic ignored "-Wsign-conversion"
# pragma GCC diagnostic ignored "-Wfloat-equal"
# pragma GCC diagnostic ignored "-Wfloat-conversion"
#endif

#include <boost/math/constants/constants.hpp>
#include <boost/core/lightweight_test.hpp>
#include <limits>
Expand Down

0 comments on commit 51bf7db

Please sign in to comment.