From 870e53c0f2d13c27d16fec05e6d9bde2ff0f5604 Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Thu, 19 Dec 2019 17:30:11 +0100 Subject: Bug #1788: Fix rule-of-three violations inside the stable modules. This fixes deprecated-copy warnings when compiling with GCC>=9 Also protect some additional Base-constructors from getting called by user code code (#1587) --- test/indexed_view.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/indexed_view.cpp') diff --git a/test/indexed_view.cpp b/test/indexed_view.cpp index f40199c82..272b6087b 100644 --- a/test/indexed_view.cpp +++ b/test/indexed_view.cpp @@ -23,6 +23,10 @@ #pragma GCC diagnostic ignored "-Wdeprecated" #endif +#if defined(__GNUC__) && (__GNUC__ >=9) + #pragma GCC diagnostic ignored "-Wdeprecated-copy" +#endif + #endif #include -- cgit v1.2.3