summaryrefslogtreecommitdiff
path: root/src/mongo/bson/mutable/document.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/bson/mutable/document.cpp')
-rw-r--r--src/mongo/bson/mutable/document.cpp4
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);
}