fix compiler warnings

This commit is contained in:
Dick Hollenbeck 2013-05-02 09:12:55 -05:00
parent fc8e0bfb75
commit 226b3d64be
2 changed files with 2 additions and 2 deletions

View File

@ -164,7 +164,7 @@ void PCB_EDIT_FRAME::loadFootprints( NETLIST& aNetlist, REPORTER* aReporter )
wxString msg;
wxString lastFootprintLibName;
COMPONENT* component;
MODULE* module;
MODULE* module = 0;
MODULE* fpOnBoard;
if( aNetlist.IsEmpty() )

View File

@ -263,7 +263,7 @@ static POINT mapPt( const wxPoint& pt )
static DRAWSEGMENT* findPoint( const wxPoint& aPoint, TYPE_COLLECTOR* items, unsigned aLimit )
{
unsigned min_d = INT_MAX;
int ndx_min;
int ndx_min = 0;
// find the point closest to aPoint and perhaps exactly matching aPoint.
for( int i = 0; i<items->GetCount(); ++i )