Disable -Wdelete-non-virtual-dtor

This commit is contained in:
Peter Dimov
2019-08-29 12:27:51 +03:00
parent 30291c406a
commit 6195ae1eb0
4 changed files with 16 additions and 0 deletions

View File

@@ -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 <boost/smart_ptr/enable_shared_from_raw.hpp>
#include <boost/shared_ptr.hpp>

View File

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

View File

@@ -14,6 +14,10 @@
#endif
#if defined(__GNUC__) && __GNUC__ > 4
# pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor"
#endif
//
// shared_ptr_basic_test.cpp
//

View File

@@ -14,6 +14,10 @@
#endif
#if defined(__GNUC__) && __GNUC__ > 4
# pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor"
#endif
//
// shared_ptr_test.cpp
//