Fix minor compil warnings

This commit is contained in:
jean-pierre charras 2024-07-12 12:43:49 +02:00
parent eb5530eadf
commit d933a8d6a9
3 changed files with 2 additions and 6 deletions

View File

@ -1117,8 +1117,6 @@ int ERC_TESTER::TestSimilarLabels()
sheet.LastScreen()->Append( marker );
};
const NET_MAP& nets = m_schematic->ConnectionGraph()->GetNetMap();
for( const std::pair<NET_NAME_CODE_CACHE_KEY, std::vector<CONNECTION_SUBGRAPH*>> net : m_nets )
{
for( CONNECTION_SUBGRAPH* subgraph : net.second )

View File

@ -1264,8 +1264,6 @@ int SCH_EDIT_TOOL::Swap( const TOOL_EVENT& aEvent )
bool appendUndo = isMoving;
bool connections = false;
SCH_SCREEN* screen = this->m_frame->GetScreen();
for( size_t i = 0; i < sorted.size() - 1; i++ )
{
SCH_ITEM* a = static_cast<SCH_ITEM*>( sorted[i] );

View File

@ -449,9 +449,9 @@ void RN_NET::OptimizeRNEdges()
}
std::sort( pairsToTest.begin(), pairsToTest.end(),
[]( const DIST_PAIR& a, const DIST_PAIR& b )
[]( const DIST_PAIR& dp_a, const DIST_PAIR& dp_b )
{
return a.dist_sq < b.dist_sq;
return dp_a.dist_sq < dp_b.dist_sq;
} );
const int c_polyPairsLimit = 3;