From ad21bfda4d58f3bc4ef833005cc5cc3d3dceb21c Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Thu, 2 May 2013 09:12:55 -0500 Subject: [PATCH] fix compiler warnings --- pcbnew/netlist.cpp | 2 +- pcbnew/specctra_export.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/netlist.cpp b/pcbnew/netlist.cpp index d0464e0809..4e63907abd 100644 --- a/pcbnew/netlist.cpp +++ b/pcbnew/netlist.cpp @@ -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() ) diff --git a/pcbnew/specctra_export.cpp b/pcbnew/specctra_export.cpp index 2dd58e7d23..aa1139711d 100644 --- a/pcbnew/specctra_export.cpp +++ b/pcbnew/specctra_export.cpp @@ -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; iGetCount(); ++i )