From e665d1e9af82842f3a908ef27df545b902c37239 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 30 May 2022 18:18:09 +0300 Subject: [PATCH] Disable -Wdeprecated-declarations for GCC 12 --- test/std_bind_cxx98.cpp | 4 ++++ test/std_bind_portable.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/test/std_bind_cxx98.cpp b/test/std_bind_cxx98.cpp index d5ea149..ffdf772 100644 --- a/test/std_bind_cxx98.cpp +++ b/test/std_bind_cxx98.cpp @@ -14,6 +14,10 @@ # endif #endif +#if defined(__GNUC__) && __GNUC__ >= 12 +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include #include diff --git a/test/std_bind_portable.cpp b/test/std_bind_portable.cpp index 1d7d964..782ae8a 100644 --- a/test/std_bind_portable.cpp +++ b/test/std_bind_portable.cpp @@ -14,6 +14,10 @@ # endif #endif +#if defined(__GNUC__) && __GNUC__ >= 12 +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + #include #include #include