From acaca854c4d1c41cd5e98f613149cf423824883c Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 16 Dec 2021 06:20:42 +0200 Subject: [PATCH] More Clang warning suppression --- test/std_bind_cxx98.cpp | 7 ++++++- test/std_bind_portable.cpp | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) 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