summaryrefslogtreecommitdiff
path: root/src/mongo/db/update
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2021-05-04 19:29:17 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-05-04 23:55:07 +0000
commite17313d141f04ef1cb05d290fcdf1fdbbcaa231c (patch)
treecb1bd15f640c817e9b21d3b50d5f912a8d87a06d /src/mongo/db/update
parentad37d48cc3f4d01bae5f8b50f0a66e191f146d34 (diff)
downloadmongo-e17313d141f04ef1cb05d290fcdf1fdbbcaa231c.tar.gz
SERVER-56585 replace MONGO_COMPILER_VARIABLE_UNUSED with c++17 attribute maybe_unused (.cpp files only)
Diffstat (limited to 'src/mongo/db/update')
-rw-r--r--src/mongo/db/update/push_node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/update/push_node.cpp b/src/mongo/db/update/push_node.cpp
index 46b44daa01a..e236f2e9124 100644
--- a/src/mongo/db/update/push_node.cpp
+++ b/src/mongo/db/update/push_node.cpp
@@ -270,7 +270,7 @@ ModifierNode::ModifyResult PushNode::insertElementsWithPosition(
// TODO: The use of std::accumulate here is maybe questionable
// given that we are ignoring the return value. MSVC flagged this,
// and we worked around by tagging the result as unused.
- MONGO_COMPILER_VARIABLE_UNUSED auto ignored =
+ [[maybe_unused]] auto ignored =
std::accumulate(std::next(valuesToPush.begin()),
valuesToPush.end(),
firstElementToInsert,