chore: fix warnings

This commit is contained in:
Vissarion Fisikopoulos
2025-07-10 19:16:30 +03:00
parent 7d46cebe25
commit 0ff86d14bc
2 changed files with 5 additions and 5 deletions

View File

@@ -80,22 +80,22 @@ void assign_counts(Turn& turn)
}
};
auto assign_left_for = [&turn, &assign_for](counts_per_op_t const& op1, counts_per_op_t op2)
auto assign_left_for = [&assign_for](counts_per_op_t const& op1, counts_per_op_t op2)
{
assign_for(op1, op2, [](auto& enriched, auto count) { enriched.count_left = count; });
};
auto assign_right_for = [&turn, &assign_for](counts_per_op_t const& op1, counts_per_op_t op2)
auto assign_right_for = [&assign_for](counts_per_op_t const& op1, counts_per_op_t op2)
{
assign_for(op1, op2, [](auto& enriched, auto count) { enriched.count_right = count; });
};
auto assign_left_incoming_for = [&turn, &assign_for](counts_per_op_t const& op1, counts_per_op_t op2)
auto assign_left_incoming_for = [&assign_for](counts_per_op_t const& op1, counts_per_op_t op2)
{
assign_for(op1, op2, [](auto& enriched, auto count) { enriched.count_left_incoming = count; });
};
auto assign_right_incoming_for = [&turn, &assign_for](counts_per_op_t const& op1, counts_per_op_t op2)
auto assign_right_incoming_for = [&assign_for](counts_per_op_t const& op1, counts_per_op_t op2)
{
assign_for(op1, op2, [](auto& enriched, auto count) { enriched.count_right_incoming = count; });
};

View File

@@ -162,7 +162,7 @@ template <typename Turns, typename Clusters, typename Graph, typename Components
void assign_biconnected_component_ids(Turns& turns, Clusters const& clusters, bool allow_closed,
Graph const& graph, Components const& component, state_type const& state)
{
auto node_id_from_it = [&state](auto const& it)
auto node_id_from_it = [](auto const& it)
{
return it->second.is_extra
? it->second.original_node_id