From a403f8269121f7789bd0c632617f28fc35ee0cd5 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 9 May 2020 03:57:27 +0300 Subject: [PATCH] Disable -Wdeprecated-volatile --- test/variant_get_by_index.cpp | 6 ++++++ test/variant_get_by_type.cpp | 6 ++++++ 2 files changed, 12 insertions(+) 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() { {