Fix minor compile warnings

This commit is contained in:
Seth Hillbrand 2018-10-25 17:14:04 -07:00
parent 2d8f1df293
commit a3bbd32953
2 changed files with 3 additions and 4 deletions

View File

@ -797,7 +797,6 @@ void SCH_EDIT_FRAME::DeleteJunction( SCH_ITEM* aJunction, bool aAppend )
SCH_JUNCTION* SCH_EDIT_FRAME::AddJunction( const wxPoint& aPosition, bool aAppend )
{
SCH_JUNCTION* junction = new SCH_JUNCTION( aPosition );
SCH_SCREEN* screen = GetScreen();
bool broken_segments = false;
AddToScreen( junction );

View File

@ -953,10 +953,10 @@ bool FOOTPRINT_EDIT_FRAME::SaveFootprintAs( MODULE* aModule )
wxString msg = wxString::Format( _( "Footprint %s already exists in %s." ),
footprintName,
libraryName );
KIDIALOG dlg( this, msg, _( "Confirmation" ), wxOK | wxCANCEL | wxICON_WARNING );
dlg.SetOKLabel( _( "Overwrite" ) );
KIDIALOG chkdlg( this, msg, _( "Confirmation" ), wxOK | wxCANCEL | wxICON_WARNING );
chkdlg.SetOKLabel( _( "Overwrite" ) );
if( dlg.ShowModal() == wxID_CANCEL )
if( chkdlg.ShowModal() == wxID_CANCEL )
return false;
}