diff --git a/test/variant_get_by_index.cpp b/test/variant_get_by_index.cpp index 2728196..97ef08b 100644 --- a/test/variant_get_by_index.cpp +++ b/test/variant_get_by_index.cpp @@ -15,6 +15,12 @@ using namespace boost::variant2; +#if defined( __clang__ ) && defined( __has_warning ) +# if __has_warning( "-Wdeprecated-volatile" ) +# pragma clang diagnostic ignored "-Wdeprecated-volatile" +# endif +#endif + int main() { { diff --git a/test/variant_get_by_type.cpp b/test/variant_get_by_type.cpp index 47daa94..4c8476d 100644 --- a/test/variant_get_by_type.cpp +++ b/test/variant_get_by_type.cpp @@ -15,6 +15,12 @@ using namespace boost::variant2; +#if defined( __clang__ ) && defined( __has_warning ) +# if __has_warning( "-Wdeprecated-volatile" ) +# pragma clang diagnostic ignored "-Wdeprecated-volatile" +# endif +#endif + int main() { {