Browse Source

Fix compil warnings

pull/13/head
jean-pierre charras 7 years ago
parent
commit
b70dd1ecc4
  1. 4
      pcbnew/dialogs/dialog_pad_properties.cpp
  2. 3
      pcbnew/dialogs/dialog_plot.cpp
  3. 2
      pcbnew/footprint_libraries_utils.cpp

4
pcbnew/dialogs/dialog_pad_properties.cpp

@ -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;

3
pcbnew/dialogs/dialog_plot.cpp

@ -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

2
pcbnew/footprint_libraries_utils.cpp

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

Loading…
Cancel
Save