aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/indexed_view.cpp
diff options
context:
space:
mode:
authorGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2019-12-19 17:30:11 +0100
committerGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2019-12-19 17:30:11 +0100
commit870e53c0f2d13c27d16fec05e6d9bde2ff0f5604 (patch)
treed203fec95c8983553f513521b4d5df1310034802 /test/indexed_view.cpp
parent6965f6de7fec13f29ad95713a031c520efd3265c (diff)
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)
Diffstat (limited to 'test/indexed_view.cpp')
-rw-r--r--test/indexed_view.cpp4
1 files changed, 4 insertions, 0 deletions
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 <valarray>