Browse Source

Fix compil warnings

pull/5/merge
jean-pierre charras 8 years ago
parent
commit
772dc2f24a
  1. 2
      eeschema/sch_eagle_plugin.cpp
  2. 14
      pcbnew/class_pad_custom_shape_functions.cpp

2
eeschema/sch_eagle_plugin.cpp

@ -1331,7 +1331,7 @@ bool SCH_EAGLE_PLUGIN::loadSymbol( wxXmlNode* aSymbolNode,
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 );

14
pcbnew/class_pad_custom_shape_functions.cpp

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