Commit 226b3d64 authored by Dick Hollenbeck's avatar Dick Hollenbeck

fix compiler warnings

parent fc8e0bfb
...@@ -164,7 +164,7 @@ void PCB_EDIT_FRAME::loadFootprints( NETLIST& aNetlist, REPORTER* aReporter ) ...@@ -164,7 +164,7 @@ void PCB_EDIT_FRAME::loadFootprints( NETLIST& aNetlist, REPORTER* aReporter )
wxString msg; wxString msg;
wxString lastFootprintLibName; wxString lastFootprintLibName;
COMPONENT* component; COMPONENT* component;
MODULE* module; MODULE* module = 0;
MODULE* fpOnBoard; MODULE* fpOnBoard;
if( aNetlist.IsEmpty() ) if( aNetlist.IsEmpty() )
......
...@@ -263,7 +263,7 @@ static POINT mapPt( const wxPoint& pt ) ...@@ -263,7 +263,7 @@ static POINT mapPt( const wxPoint& pt )
static DRAWSEGMENT* findPoint( const wxPoint& aPoint, TYPE_COLLECTOR* items, unsigned aLimit ) static DRAWSEGMENT* findPoint( const wxPoint& aPoint, TYPE_COLLECTOR* items, unsigned aLimit )
{ {
unsigned min_d = INT_MAX; unsigned min_d = INT_MAX;
int ndx_min; int ndx_min = 0;
// find the point closest to aPoint and perhaps exactly matching aPoint. // find the point closest to aPoint and perhaps exactly matching aPoint.
for( int i = 0; i<items->GetCount(); ++i ) for( int i = 0; i<items->GetCount(); ++i )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment