diff --git a/test/throw_exception_test3.cpp b/test/throw_exception_test3.cpp index d130044..d88c7fb 100644 --- a/test/throw_exception_test3.cpp +++ b/test/throw_exception_test3.cpp @@ -5,14 +5,20 @@ // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt -#include -#include -#include - #if defined(_MSC_VER) # pragma warning(disable: 4702) // unreachable code #endif +#if defined(__clang__) +# pragma clang diagnostic ignored "-Wpotentially-evaluated-expression" +# pragma clang diagnostic ignored "-Wdelete-non-abstract-non-virtual-dtor" +# pragma clang diagnostic ignored "-Wunused-parameter" +#endif + +#include +#include +#include + class my_exception: public std::exception { }; diff --git a/test/throw_exception_test5.cpp b/test/throw_exception_test5.cpp index 3721333..e38329b 100644 --- a/test/throw_exception_test5.cpp +++ b/test/throw_exception_test5.cpp @@ -5,6 +5,11 @@ // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt +#if defined(__clang__) +# pragma clang diagnostic ignored "-Wpotentially-evaluated-expression" +# pragma clang diagnostic ignored "-Wdelete-non-abstract-non-virtual-dtor" +#endif + #include #include #include diff --git a/test/throw_from_library_test.cpp b/test/throw_from_library_test.cpp index a71709e..0993bd9 100644 --- a/test/throw_from_library_test.cpp +++ b/test/throw_from_library_test.cpp @@ -5,6 +5,16 @@ // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt +#if defined(_MSC_VER) +# pragma warning(disable: 4702) // unreachable code +#endif + +#if defined(__clang__) +# pragma clang diagnostic ignored "-Wpotentially-evaluated-expression" +# pragma clang diagnostic ignored "-Wdelete-non-abstract-non-virtual-dtor" +# pragma clang diagnostic ignored "-Wunused-parameter" +#endif + #include "lib1_throw.hpp" #include "lib2_throw.hpp" #include "lib3_throw.hpp" @@ -13,10 +23,6 @@ #include #include -#if defined(_MSC_VER) -# pragma warning(disable: 4702) // unreachable code -#endif - void test_catch_by_type() { BOOST_TEST_THROWS( lib1::f(), lib1::exception );