Fix compil warnings
This commit is contained in:
parent
aa17e7919e
commit
b70dd1ecc4
|
@ -944,7 +944,7 @@ void DIALOG_PAD_PROPERTIES::PadTypeSelected( wxCommandEvent& event )
|
||||||
{
|
{
|
||||||
int ii = m_PadType->GetSelection();
|
int ii = m_PadType->GetSelection();
|
||||||
|
|
||||||
if( ii >= DIM( code_type ) ) // catches < 0 also
|
if( (unsigned)ii >= DIM( code_type ) ) // catches < 0 also
|
||||||
ii = 0;
|
ii = 0;
|
||||||
|
|
||||||
bool hasHole, hasConnection;
|
bool hasHole, hasConnection;
|
||||||
|
@ -994,7 +994,7 @@ void DIALOG_PAD_PROPERTIES::OnUpdateUI( wxUpdateUIEvent& event )
|
||||||
{
|
{
|
||||||
int ii = m_PadType->GetSelection();
|
int ii = m_PadType->GetSelection();
|
||||||
|
|
||||||
if( ii >= DIM( code_type ) ) // catches < 0 also
|
if( (unsigned)ii >= DIM( code_type ) ) // catches < 0 also
|
||||||
ii = 0;
|
ii = 0;
|
||||||
|
|
||||||
bool hasHole, hasConnection;
|
bool hasHole, hasConnection;
|
||||||
|
|
|
@ -494,6 +494,9 @@ void DIALOG_PLOT::SetPlotFormat( wxCommandEvent& event )
|
||||||
|
|
||||||
OnChangeDXFPlotMode( event );
|
OnChangeDXFPlotMode( event );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case PLOT_FORMAT_UNDEFINED:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Update the interlock between scale and frame reference
|
/* Update the interlock between scale and frame reference
|
||||||
|
|
|
@ -713,6 +713,8 @@ bool FOOTPRINT_EDIT_FRAME::SaveFootprint( MODULE* aModule )
|
||||||
DisplayError( this, ioe.What() );
|
DisplayError( this, ioe.What() );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue