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 //