From 6195ae1eb09c47935a9252d8d34fd61abc915594 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 29 Aug 2019 12:27:51 +0300 Subject: [PATCH] Disable -Wdelete-non-virtual-dtor --- test/shared_from_raw_test.cpp | 4 ++++ test/shared_from_this_test.cpp | 4 ++++ test/shared_ptr_basic_test.cpp | 4 ++++ test/shared_ptr_test.cpp | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/test/shared_from_raw_test.cpp b/test/shared_from_raw_test.cpp index cf5500f..d6688c3 100644 --- a/test/shared_from_raw_test.cpp +++ b/test/shared_from_raw_test.cpp @@ -9,6 +9,10 @@ // http://www.boost.org/LICENSE_1_0.txt // +#if defined(__GNUC__) && __GNUC__ > 4 +# pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor" +#endif + #include #include diff --git a/test/shared_from_this_test.cpp b/test/shared_from_this_test.cpp index b3d7838..52c8b98 100644 --- a/test/shared_from_this_test.cpp +++ b/test/shared_from_this_test.cpp @@ -7,6 +7,10 @@ #pragma warning(disable: 4514) // unreferenced inline removed #endif +#if defined(__GNUC__) && __GNUC__ > 4 +# pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor" +#endif + // // shared_from_this_test.cpp // diff --git a/test/shared_ptr_basic_test.cpp b/test/shared_ptr_basic_test.cpp index 4d4179e..3fc636a 100644 --- a/test/shared_ptr_basic_test.cpp +++ b/test/shared_ptr_basic_test.cpp @@ -14,6 +14,10 @@ #endif +#if defined(__GNUC__) && __GNUC__ > 4 +# pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor" +#endif + // // shared_ptr_basic_test.cpp // diff --git a/test/shared_ptr_test.cpp b/test/shared_ptr_test.cpp index 444add0..b76f954 100644 --- a/test/shared_ptr_test.cpp +++ b/test/shared_ptr_test.cpp @@ -14,6 +14,10 @@ #endif +#if defined(__GNUC__) && __GNUC__ > 4 +# pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor" +#endif + // // shared_ptr_test.cpp //