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