mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Fix minor compil warnings
This commit is contained in:
parent
eb5530eadf
commit
d933a8d6a9
@ -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 )
|
||||
|
@ -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] );
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user