From 9d1b320896db66a13de468415bd6ebc08bbd6d38 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 8 Mar 2025 09:40:23 +0100 Subject: [PATCH] Fix compil warnings --- pcbnew/footprint_edit_frame.cpp | 6 ++++++ pcbnew/pcb_io/odbpp/odb_attribute.h | 2 +- pcbnew/pcb_io/odbpp/odb_component.cpp | 2 +- pcbnew/plot_brditems_plotter.cpp | 2 -- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/pcbnew/footprint_edit_frame.cpp b/pcbnew/footprint_edit_frame.cpp index 5819fd88d3..3f58bd2367 100644 --- a/pcbnew/footprint_edit_frame.cpp +++ b/pcbnew/footprint_edit_frame.cpp @@ -196,6 +196,12 @@ FOOTPRINT_EDIT_FRAME::FOOTPRINT_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) : libWidth = cfg->m_LibWidth; aui_cfg = cfg->m_AuiPanels; } + else + { + // keep gcc quiet about uninitalized vars: + aui_cfg.appearance_panel_tab = 0; + aui_cfg.right_panel_width = -1; + } m_auimgr.SetManagedWindow( this ); diff --git a/pcbnew/pcb_io/odbpp/odb_attribute.h b/pcbnew/pcb_io/odbpp/odb_attribute.h index 405c02530c..aae5af2e01 100644 --- a/pcbnew/pcb_io/odbpp/odb_attribute.h +++ b/pcbnew/pcb_io/odbpp/odb_attribute.h @@ -285,7 +285,7 @@ USED_BY_FEATURE_ENTITY( VIA_TYPE ) enum class COMP_MOUNT_TYPE { OTHER, - SMD, + MT_SMD, THT, PRESSFIT }; diff --git a/pcbnew/pcb_io/odbpp/odb_component.cpp b/pcbnew/pcb_io/odbpp/odb_component.cpp index b2f6d8c509..ae9e85efd2 100644 --- a/pcbnew/pcb_io/odbpp/odb_component.cpp +++ b/pcbnew/pcb_io/odbpp/odb_component.cpp @@ -78,7 +78,7 @@ ODB_COMPONENT& COMPONENTS_MANAGER::AddComponent( const FOOTPRINT* aFp, if( aFp->GetAttributes() & FP_SMD ) { - AddSystemAttribute( comp, ODB_ATTR::COMP_MOUNT_TYPE::SMD ); + AddSystemAttribute( comp, ODB_ATTR::COMP_MOUNT_TYPE::MT_SMD ); } else if( aFp->GetAttributes() & FP_THROUGH_HOLE ) { diff --git a/pcbnew/plot_brditems_plotter.cpp b/pcbnew/plot_brditems_plotter.cpp index aa9d2e0351..53cfccb866 100644 --- a/pcbnew/plot_brditems_plotter.cpp +++ b/pcbnew/plot_brditems_plotter.cpp @@ -1124,8 +1124,6 @@ void BRDITEMS_PLOTTER::PlotTableBorders( const PCB_TABLE* aTable ) if( !m_layerMask[aTable->GetLayer()] ) return; - VECTOR2I pos = aTable->GetPosition(); - VECTOR2I end = aTable->GetEnd(); int lineWidth; LINE_STYLE lineStyle; GBR_METADATA gbr_metadata;