From a731da39569b4dcae609259cd760d1ec660831b1 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Tue, 9 Nov 2021 01:49:48 +0000 Subject: [PATCH] Suppress Wdeprecated-copy warning in btree_iterator --- src/3rdparty/cpp-btree/btree.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/3rdparty/cpp-btree/btree.h b/src/3rdparty/cpp-btree/btree.h index 2be24691d0..fc2ae9c9e3 100644 --- a/src/3rdparty/cpp-btree/btree.h +++ b/src/3rdparty/cpp-btree/btree.h @@ -724,6 +724,11 @@ class btree_node { void operator=(const btree_node&); }; +#ifndef _MSC_VER +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-copy" +#endif /* _MSC_VER */ + template struct btree_iterator { typedef typename Node::key_type key_type; @@ -826,6 +831,10 @@ struct btree_iterator { int position; }; +#ifndef _MSC_VER +#pragma GCC diagnostic pop +#endif /* _MSC_VER */ + // Dispatch helper class for using btree::internal_locate with plain compare. struct btree_internal_locate_plain_compare { template