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