Fix compil warnings

This commit is contained in:
jean-pierre charras 2017-10-20 13:48:36 +02:00
parent fdae9f0b75
commit 772dc2f24a
2 changed files with 9 additions and 7 deletions

View File

@ -1331,7 +1331,7 @@ bool SCH_EAGLE_PLUGIN::loadSymbol( wxXmlNode* aSymbolNode,
pin->SetNumberTextSize( 0 ); pin->SetNumberTextSize( 0 );
} }
for( int i = 0; i < pads.GetCount(); i++) for( unsigned i = 0; i < pads.GetCount(); i++)
{ {
LIB_PIN* apin = new LIB_PIN( *pin ); LIB_PIN* apin = new LIB_PIN( *pin );

View File

@ -362,6 +362,7 @@ bool D_PAD::GetBestAnchorPosition( VECTOR2I& aPos )
boost::optional<VECTOR2I> bestAnchor; boost::optional<VECTOR2I> bestAnchor;
for ( int y = 0; y < stepsY ; y++ ) for ( int y = 0; y < stepsY ; y++ )
{
for ( int x = 0; x < stepsX; x++ ) for ( int x = 0; x < stepsX; x++ )
{ {
VECTOR2I p = bbox.GetPosition(); VECTOR2I p = bbox.GetPosition();
@ -383,12 +384,13 @@ bool D_PAD::GetBestAnchorPosition( VECTOR2I& aPos )
} }
} }
} }
}
if ( bestAnchor ) if ( bestAnchor )
{ {
aPos = *bestAnchor; aPos = *bestAnchor;
return true; return true;
} }
return false; return false;
} }