diff options
author | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2019-12-19 17:30:11 +0100 |
---|---|---|
committer | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2019-12-19 17:30:11 +0100 |
commit | 870e53c0f2d13c27d16fec05e6d9bde2ff0f5604 (patch) | |
tree | d203fec95c8983553f513521b4d5df1310034802 /test | |
parent | 6965f6de7fec13f29ad95713a031c520efd3265c (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')
-rw-r--r-- | test/indexed_view.cpp | 4 |
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> |