From fd4cd17f4fb66b9a54a0a097ed26156ba942b5dc Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 20 Sep 2022 18:08:24 +0200 Subject: [PATCH] fix a compil warning --- eeschema/tools/ee_inspection_tool.cpp | 1 - eeschema/tools/ee_selection_tool.cpp | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/eeschema/tools/ee_inspection_tool.cpp b/eeschema/tools/ee_inspection_tool.cpp index 21f537d1aa..5604111845 100644 --- a/eeschema/tools/ee_inspection_tool.cpp +++ b/eeschema/tools/ee_inspection_tool.cpp @@ -212,7 +212,6 @@ int EE_INSPECTION_TOOL::CheckSymbol( const TOOL_EVENT& aEvent ) if( !symbol ) return 0; - EDA_UNITS units = m_frame->GetUserUnits(); std::vector messages; const int grid_size = KiROUND( getView()->GetGAL()->GetGridSize().x ); diff --git a/eeschema/tools/ee_selection_tool.cpp b/eeschema/tools/ee_selection_tool.cpp index a8a757f167..ca9cbcead1 100644 --- a/eeschema/tools/ee_selection_tool.cpp +++ b/eeschema/tools/ee_selection_tool.cpp @@ -231,13 +231,13 @@ bool EE_SELECTION_TOOL::Init() if ( !m_isSymbolEditor ) return false; - SYMBOL_EDIT_FRAME* symbolEditorFrame = dynamic_cast( m_frame ); + SYMBOL_EDIT_FRAME* symbEditorFrame = dynamic_cast( m_frame ); - return symbolEditorFrame - && symbolEditorFrame->GetCurSymbol() - && symbolEditorFrame->GetCurSymbol()->IsMulti() - && symbolEditorFrame->IsSymbolEditable() - && !symbolEditorFrame->IsSymbolAlias(); + return symbEditorFrame + && symbEditorFrame->GetCurSymbol() + && symbEditorFrame->GetCurSymbol()->IsMulti() + && symbEditorFrame->IsSymbolEditable() + && !symbEditorFrame->IsSymbolAlias(); }; auto& menu = m_menu.GetMenu();