From 7a9467b0d50ee188e9ed2978c067c1bab123f6af Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Thu, 24 Nov 2022 17:05:58 -0500 Subject: [PATCH] Get rid of some gcc warnings --- pcbnew/dialogs/dialog_pad_properties.cpp | 2 +- pcbnew/router/router_tool.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/dialogs/dialog_pad_properties.cpp b/pcbnew/dialogs/dialog_pad_properties.cpp index bc497fa72e..c62fdf85c8 100644 --- a/pcbnew/dialogs/dialog_pad_properties.cpp +++ b/pcbnew/dialogs/dialog_pad_properties.cpp @@ -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( arrayDim( shapelist ) ) - 1 ) primitive->SetIsAnnotationProxy(); primitive->SetStroke( STROKE_PARAMS( m_board->GetDesignSettings().GetLineThickness( F_Cu ), diff --git a/pcbnew/router/router_tool.cpp b/pcbnew/router/router_tool.cpp index 0989929e2d..ca791f5d31 100644 --- a/pcbnew/router/router_tool.cpp +++ b/pcbnew/router/router_tool.cpp @@ -594,7 +594,7 @@ void ROUTER_TOOL::saveRouterDebugLog() evt.sizes.TrackWidthIsExplicit() ? 1: 0, evt.sizes.GetLayerBottom(), evt.sizes.GetLayerTop(), - evt.sizes.ViaType() ); + static_cast( evt.sizes.ViaType() ) ); } // Export as *.kicad_pcb format, using a strategy which is specifically chosen