Fix compil warnings

This commit is contained in:
jean-pierre charras 2018-07-27 11:18:24 +02:00
parent aa17e7919e
commit b70dd1ecc4
3 changed files with 7 additions and 2 deletions

View File

@ -944,7 +944,7 @@ void DIALOG_PAD_PROPERTIES::PadTypeSelected( wxCommandEvent& event )
{
int ii = m_PadType->GetSelection();
if( ii >= DIM( code_type ) ) // catches < 0 also
if( (unsigned)ii >= DIM( code_type ) ) // catches < 0 also
ii = 0;
bool hasHole, hasConnection;
@ -994,7 +994,7 @@ void DIALOG_PAD_PROPERTIES::OnUpdateUI( wxUpdateUIEvent& event )
{
int ii = m_PadType->GetSelection();
if( ii >= DIM( code_type ) ) // catches < 0 also
if( (unsigned)ii >= DIM( code_type ) ) // catches < 0 also
ii = 0;
bool hasHole, hasConnection;

View File

@ -494,6 +494,9 @@ void DIALOG_PLOT::SetPlotFormat( wxCommandEvent& event )
OnChangeDXFPlotMode( event );
break;
case PLOT_FORMAT_UNDEFINED:
break;
}
/* Update the interlock between scale and frame reference

View File

@ -713,6 +713,8 @@ bool FOOTPRINT_EDIT_FRAME::SaveFootprint( MODULE* aModule )
DisplayError( this, ioe.What() );
return false;
}
return true;
}