From 451cb7a19403f6d86af69e90da97cdcd4038d2de Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Fri, 3 May 2024 00:09:21 +0300 Subject: [PATCH] Fix warnings. --- eeschema/sch_commit.cpp | 2 +- eeschema/symbol_editor/symbol_editor.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/sch_commit.cpp b/eeschema/sch_commit.cpp index 05dcae1ac8..db26936321 100644 --- a/eeschema/sch_commit.cpp +++ b/eeschema/sch_commit.cpp @@ -222,7 +222,7 @@ void SCH_COMMIT::pushSchEdit( const wxString& aMessage, int aCommitFlags ) } ); } - auto updateConnectivityFlag = [&, this]() + auto updateConnectivityFlag = [&]() { if( schItem->IsConnectable() ) { diff --git a/eeschema/symbol_editor/symbol_editor.cpp b/eeschema/symbol_editor/symbol_editor.cpp index a0c14c3b03..ee02193bd6 100644 --- a/eeschema/symbol_editor/symbol_editor.cpp +++ b/eeschema/symbol_editor/symbol_editor.cpp @@ -1282,7 +1282,7 @@ void SYMBOL_EDIT_FRAME::UpdateSymbolMsgPanelInfo() else if( m_bodyStyle == LIB_ITEM::BODY_STYLE::BASE ) msg = _( "Standard" ); else - wxT( "?" ); + msg = wxT( "?" ); AppendMsgPanel( _( "Body" ), msg, 8 );