summaryrefslogtreecommitdiff
path: root/src/mongo/bson/util
diff options
context:
space:
mode:
authorJuan Gu <juan.gu@mongodb.com>2022-11-11 21:57:33 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-11-11 23:04:37 +0000
commitfffe2cb03d8f3a826f7039614ee1c12d88917440 (patch)
tree9fb13778af611afcab969cca9629a9d7a07921cb /src/mongo/bson/util
parent4fe82a58bcb58f653da8052885a13c683fcea9cc (diff)
downloadmongo-fffe2cb03d8f3a826f7039614ee1c12d88917440.tar.gz
SERVER-29601 Add -Wshadow to compilation - part1
Diffstat (limited to 'src/mongo/bson/util')
-rw-r--r--src/mongo/bson/util/bsoncolumn.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/bson/util/bsoncolumn.cpp b/src/mongo/bson/util/bsoncolumn.cpp
index 3308dac7b3b..63ae732840c 100644
--- a/src/mongo/bson/util/bsoncolumn.cpp
+++ b/src/mongo/bson/util/bsoncolumn.cpp
@@ -766,7 +766,7 @@ BSONElement BSONColumn::Iterator::DecodingState::_loadDelta(BSONColumn& column,
}
// Write value depending on type
- auto elem = [&]() -> ElementStorage::Element {
+ auto elemFn = [&]() -> ElementStorage::Element {
switch (_lastType) {
case String:
case Code: {
@@ -809,7 +809,7 @@ BSONElement BSONColumn::Iterator::DecodingState::_loadDelta(BSONColumn& column,
}
}();
- _lastValue = elem.element();
+ _lastValue = elemFn.element();
return _lastValue;
}