diff options
author | Benety Goh <benety@mongodb.com> | 2021-05-04 19:29:17 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-05-04 23:55:07 +0000 |
commit | e17313d141f04ef1cb05d290fcdf1fdbbcaa231c (patch) | |
tree | cb1bd15f640c817e9b21d3b50d5f912a8d87a06d /src/mongo/bson/mutable | |
parent | ad37d48cc3f4d01bae5f8b50f0a66e191f146d34 (diff) | |
download | mongo-e17313d141f04ef1cb05d290fcdf1fdbbcaa231c.tar.gz |
SERVER-56585 replace MONGO_COMPILER_VARIABLE_UNUSED with c++17 attribute maybe_unused (.cpp files only)
Diffstat (limited to 'src/mongo/bson/mutable')
-rw-r--r-- | src/mongo/bson/mutable/document.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/bson/mutable/document.cpp b/src/mongo/bson/mutable/document.cpp index 3e7853146a1..b72b9d8f326 100644 --- a/src/mongo/bson/mutable/document.cpp +++ b/src/mongo/bson/mutable/document.cpp @@ -2277,14 +2277,14 @@ Document::Document(const BSONObj& value, InPlaceMode inPlaceMode) void Document::reset() { _impl->reset(Document::kInPlaceDisabled); - MONGO_COMPILER_VARIABLE_UNUSED const Element newRoot = makeRootElement(); + [[maybe_unused]] const Element newRoot = makeRootElement(); dassert(newRoot._repIdx == _root._repIdx); dassert(_root._repIdx == kRootRepIdx); } void Document::reset(const BSONObj& value, InPlaceMode inPlaceMode) { _impl->reset(inPlaceMode); - MONGO_COMPILER_VARIABLE_UNUSED const Element newRoot = makeRootElement(value); + [[maybe_unused]] const Element newRoot = makeRootElement(value); dassert(newRoot._repIdx == _root._repIdx); dassert(_root._repIdx == kRootRepIdx); } |