diff --git a/common/dialog_shim.cpp b/common/dialog_shim.cpp index 27fb7ca80f..8de4f18c34 100644 --- a/common/dialog_shim.cpp +++ b/common/dialog_shim.cpp @@ -77,8 +77,8 @@ DIALOG_SHIM::DIALOG_SHIM( wxWindow* aParent, wxWindowID id, const wxString& titl const wxString& name ) : wxDialog( aParent, id, title, pos, size, style, name ), KIWAY_HOLDER( nullptr, KIWAY_HOLDER::DIALOG ), - m_useCalculatedSize( false ), m_units( EDA_UNITS::MILLIMETRES ), + m_useCalculatedSize( false ), m_firstPaintEvent( true ), m_initialFocusTarget( nullptr ), m_qmodal_loop( nullptr ), diff --git a/pcbnew/dialogs/dialog_global_deletion.cpp b/pcbnew/dialogs/dialog_global_deletion.cpp index a9ede51b5a..b97f9c2e25 100644 --- a/pcbnew/dialogs/dialog_global_deletion.cpp +++ b/pcbnew/dialogs/dialog_global_deletion.cpp @@ -194,8 +194,6 @@ void DIALOG_GLOBAL_DELETION::acceptPcbDelete() { for( FOOTPRINT* footprint : pcb->Footprints() ) { - bool del_fp = delAll; - if( !delAll ) { if( footprint->IsLocked() && !m_footprintFilterLocked->GetValue() )