Get rid of some gcc warnings

This commit is contained in:
Jon Evans 2022-11-24 17:05:58 -05:00
parent 436129cb75
commit 7a9467b0d5
2 changed files with 2 additions and 2 deletions

View File

@ -2192,7 +2192,7 @@ void DIALOG_PAD_PROPERTIES::onAddPrimitive( wxCommandEvent& event )
PCB_SHAPE* primitive = new PCB_SHAPE();
primitive->SetShape( listtype[type] );
if( type == arrayDim( shapelist ) - 1 )
if( type == static_cast<int>( arrayDim( shapelist ) ) - 1 )
primitive->SetIsAnnotationProxy();
primitive->SetStroke( STROKE_PARAMS( m_board->GetDesignSettings().GetLineThickness( F_Cu ),

View File

@ -594,7 +594,7 @@ void ROUTER_TOOL::saveRouterDebugLog()
evt.sizes.TrackWidthIsExplicit() ? 1: 0,
evt.sizes.GetLayerBottom(),
evt.sizes.GetLayerTop(),
evt.sizes.ViaType() );
static_cast<int>( evt.sizes.ViaType() ) );
}
// Export as *.kicad_pcb format, using a strategy which is specifically chosen