1 // 2 // Copyright 2018 Mateusz Loskot <mateusz at loskot dot net> 3 // 4 // Distribtted under the Boost Software License, Version 1.0 5 // See accompanying file LICENSE_1_0.txt or copy at 6 // http://www.boost.org/LICENSE_1_0.txt 7 // 8 #ifndef BOOST_GIL_TEST_UNIT_TEST_HPP 9 #define BOOST_GIL_TEST_UNIT_TEST_HPP 10 11 #include <boost/config.hpp> 12 13 #if defined(_MSC_VER) 14 #pragma warning(push) 15 #pragma warning(disable:4702) // unreachable code 16 #endif 17 18 #if defined(BOOST_CLANG) 19 #pragma clang diagnostic push 20 #pragma clang diagnostic ignored "-Wfloat-equal" 21 #pragma clang diagnostic ignored "-Wsign-conversion" 22 #endif 23 24 #if defined(BOOST_GCC) && (BOOST_GCC >= 40900) 25 #pragma GCC diagnostic push 26 #pragma GCC diagnostic ignored "-Wconversion" 27 #pragma GCC diagnostic ignored "-Wfloat-equal" 28 #pragma GCC diagnostic ignored "-Wshadow" 29 #endif 30 31 #include <boost/test/unit_test.hpp> 32 33 #if defined(_MSC_VER) 34 #pragma warning(pop) 35 #endif 36 37 #if defined(BOOST_CLANG) 38 #pragma clang diagnostic pop 39 #endif 40 41 #if defined(BOOST_GCC) && (BOOST_GCC >= 40900) 42 #pragma GCC diagnostic pop 43 #endif 44 45 namespace btt = boost::test_tools; 46 namespace but = boost::unit_test; 47 48 #endif 49