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/db/update | |
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/db/update')
-rw-r--r-- | src/mongo/db/update/push_node.cpp | 2 |
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, |