Fix 2 minor compil warnings.

This commit is contained in:
jean-pierre charras 2024-01-10 09:16:14 +01:00
parent 08c2237a94
commit 07d7ccf46f
2 changed files with 2 additions and 4 deletions

View File

@ -2216,9 +2216,9 @@ BOARD_ITEM* FOOTPRINT::DuplicateItem( const BOARD_ITEM* aItem, bool aAddToFootpr
if( aAddToFootprint )
{
group->RunOnDescendants(
[&]( BOARD_ITEM* aItem )
[&]( BOARD_ITEM* aCurrItem )
{
Add( aItem );
Add( aCurrItem );
} );
Add( new_item );

View File

@ -629,8 +629,6 @@ bool TRACKS_CLEANER::mergeCollinearSegments( PCB_TRACK* aSeg1, PCB_TRACK* aSeg2
collectPts( item );
}
int64_t combined_length = aSeg1->GetLength() + aSeg2->GetLength();
// This means there is a node in the center
if( pts.size() > 2 )
return false;