From 05b559c9dcf343e4695164ca9e6aa7167d365dc7 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Thu, 18 Feb 2021 10:36:16 -0800 Subject: [PATCH] Quiet gcc warnings --- common/widgets/grid_text_button_helpers.cpp | 6 +++--- eeschema/symbol_editor/symbol_edit_frame.cpp | 6 ------ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/common/widgets/grid_text_button_helpers.cpp b/common/widgets/grid_text_button_helpers.cpp index 9cd94dad04..909d78eb47 100644 --- a/common/widgets/grid_text_button_helpers.cpp +++ b/common/widgets/grid_text_button_helpers.cpp @@ -375,7 +375,7 @@ protected: SetValue( relPath ); if( !m_grid->CommitPendingChanges() ) - ; // shouldn't happen, but Coverity doesn't know that + {;} // shouldn't happen, but Coverity doesn't know that *m_currentDir = lastPath; } @@ -402,7 +402,7 @@ protected: SetValue( relPath ); if( !m_grid->CommitPendingChanges() ) - ; // shouldn't happen, but Coverity doesn't know that + {;} // shouldn't happen, but Coverity doesn't know that *m_currentDir = relPath; } @@ -437,4 +437,4 @@ void GRID_CELL_PATH_EDITOR::Create( wxWindow* aParent, wxWindowID aId, #endif wxGridCellEditor::Create( aParent, aId, aEventHandler ); -} \ No newline at end of file +} diff --git a/eeschema/symbol_editor/symbol_edit_frame.cpp b/eeschema/symbol_editor/symbol_edit_frame.cpp index 95faa7e6de..5f29b04d27 100644 --- a/eeschema/symbol_editor/symbol_edit_frame.cpp +++ b/eeschema/symbol_editor/symbol_edit_frame.cpp @@ -339,12 +339,6 @@ void SYMBOL_EDIT_FRAME::setupUIConditions() return IsSymbolEditable() && !IsSymbolAlias(); }; - auto schematicModifiedCond = - [this] ( const SELECTION& ) - { - return IsSymbolFromSchematic() && GetScreen() && GetScreen()->IsModify(); - }; - auto libModifiedCondition = [this] ( const SELECTION& sel ) {