diff --git a/test/std_bind_cxx98.cpp b/test/std_bind_cxx98.cpp index d23fab1..d5ea149 100644 --- a/test/std_bind_cxx98.cpp +++ b/test/std_bind_cxx98.cpp @@ -8,7 +8,12 @@ // For more information, see http://www.boost.org/ - +#if defined(__clang__) && defined(__has_warning) +# if __has_warning( "-Wdeprecated-declarations" ) +# pragma clang diagnostic ignored "-Wdeprecated-declarations" +# endif +#endif + #include #include #include diff --git a/test/std_bind_portable.cpp b/test/std_bind_portable.cpp index 1bfdbc2..1d7d964 100644 --- a/test/std_bind_portable.cpp +++ b/test/std_bind_portable.cpp @@ -8,7 +8,12 @@ // For more information, see http://www.boost.org/ - +#if defined(__clang__) && defined(__has_warning) +# if __has_warning( "-Wdeprecated-declarations" ) +# pragma clang diagnostic ignored "-Wdeprecated-declarations" +# endif +#endif + #include #include #include