Remove some shawowed variable warnings.

This commit is contained in:
Markus Blatt 2021-07-26 17:04:35 +02:00
parent bc1bc90504
commit e6c8f6985c
2 changed files with 5 additions and 5 deletions

View File

@ -1631,10 +1631,10 @@ updateSummaryRegionValues(const Inplace& inplace,
// support the RPR__xxx summary keywords.
{
auto get_vector = [&inplace]
(const auto& node,
const Inplace::Phase phase)
(const auto& node_,
const Inplace::Phase phase_)
{
return inplace.get_vector(node.fip_region(), phase);
return inplace.get_vector(node_.fip_region(), phase_);
};
for (const auto& phase : Inplace::phases()) {

View File

@ -168,7 +168,7 @@ public:
m_packSize += Mpi::packSize(d, m_comm);
};
auto pack = [&](auto& d) {
auto packer = [&](auto& d) {
Mpi::pack(d, m_buffer, m_position, m_comm);
};
@ -177,7 +177,7 @@ public:
std::visit( [&] (auto& arg) { pack_size(arg); }, data);
} else if (m_op == Operation::PACK) {
Mpi::pack(data.index(), m_buffer, m_position, m_comm);
std::visit([&](auto& arg) { pack(arg); }, data);
std::visit([&](auto& arg) { packer(arg); }, data);
} else if (m_op == Operation::UNPACK) {
size_t index;
std::variant<T0,T1>& mutable_data = const_cast<std::variant<T0,T1>&>(data);