diff --git a/test/serialization_nvp_test.cpp b/test/serialization_nvp_test.cpp index 0eee020..588c9a5 100644 --- a/test/serialization_nvp_test.cpp +++ b/test/serialization_nvp_test.cpp @@ -2,6 +2,12 @@ // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt +#if defined(__clang__) && defined(__has_warning) +# if __has_warning( "-Wdeprecated-copy" ) +# pragma clang diagnostic ignored "-Wdeprecated-copy" +# endif +#endif + #include struct X diff --git a/test/serialization_split_free_test.cpp b/test/serialization_split_free_test.cpp index cead4ad..9c92ae9 100644 --- a/test/serialization_split_free_test.cpp +++ b/test/serialization_split_free_test.cpp @@ -2,6 +2,12 @@ // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt +#if defined(__clang__) && defined(__has_warning) +# if __has_warning( "-Wdeprecated-copy" ) +# pragma clang diagnostic ignored "-Wdeprecated-copy" +# endif +#endif + #include struct X