2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

Ignore warnings in distribution tests suite (#933)

This commit is contained in:
Matt Borland
2023-01-30 10:37:33 -08:00
committed by GitHub
parent 5e4c121673
commit f0933b401c
5 changed files with 29 additions and 0 deletions

View File

@@ -51,10 +51,15 @@ inline void check_result_imp(T1, T2)
#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 8)))
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
#elif defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-local-typedef"
#endif
using static_assertion = int[local_is_same<T1, T2>::value ? 1 : 0];
#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 8)))
#pragma GCC diagnostic pop
#elif defined(__clang__)
#pragma clang diagnostic pop
#endif
}

View File

@@ -26,6 +26,14 @@ namespace std{ using ::sqrt; using ::tan; using ::tanh; }
#define BOOST_TEST_MESSAGE(x)
#endif
#ifdef _MSC_VER
#pragma warning (disable:C4996)
#elif __GNUC__ >= 5
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#elif defined(__clang__)
# pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif
//
// check_complex:
// Verifies that expected value "a" and found value "b" have a relative error

View File

@@ -27,6 +27,14 @@
#include "handle_test_result.hpp"
#include "table_type.hpp"
#ifdef _MSC_VER
#pragma warning (disable:4127 4512)
#elif __GNUC__ >= 5
# pragma GCC diagnostic ignored "-Woverflow"
#elif defined(__clang__)
# pragma clang diagnostic ignored "-Wliteral-range"
#endif
#define BOOST_CHECK_EX(a) \
{\
unsigned int failures = boost::unit_test::results_collector.results( boost::unit_test::framework::current_test_case().p_id ).p_assertions_failed;\

View File

@@ -14,6 +14,10 @@
#ifdef _MSC_VER
#pragma warning (disable:4127 4512)
#elif __GNUC__ >= 5
# pragma GCC diagnostic ignored "-Woverflow"
#elif defined(__clang__)
# pragma clang diagnostic ignored "-Wliteral-range"
#endif
#if !defined(TEST_FLOAT) && !defined(TEST_DOUBLE) && !defined(TEST_LDOUBLE) && !defined(TEST_REAL_CONCEPT)

View File

@@ -11,6 +11,10 @@
#ifdef _MSC_VER
#pragma warning (disable:4127 4512)
#elif __GNUC__ >= 5
# pragma GCC diagnostic ignored "-Woverflow"
#elif defined(__clang__)
# pragma clang diagnostic ignored "-Wliteral-range"
#endif
#if !defined(TEST_FLOAT) && !defined(TEST_DOUBLE) && !defined(TEST_LDOUBLE) && !defined(TEST_REAL_CONCEPT)