diff --git a/eeschema/sch_screen.cpp b/eeschema/sch_screen.cpp index efa9cadc7b..54f6bf0461 100644 --- a/eeschema/sch_screen.cpp +++ b/eeschema/sch_screen.cpp @@ -372,7 +372,7 @@ std::set SCH_SCREEN::MarkConnections( SCH_LINE* aSegment ) bool SCH_SCREEN::IsJunctionNeeded( const wxPoint& aPosition, bool aNew ) const { - enum { WIRES = 0, BUSES } layers; + enum layers { WIRES = 0, BUSES }; bool breakLines[ 2 ] = { false }; std::unordered_set exitAngles[ 2 ]; diff --git a/eeschema/symbol_tree_model_adapter.cpp b/eeschema/symbol_tree_model_adapter.cpp index e659270ede..2aa06bb726 100644 --- a/eeschema/symbol_tree_model_adapter.cpp +++ b/eeschema/symbol_tree_model_adapter.cpp @@ -101,7 +101,7 @@ void SYMBOL_TREE_MODEL_ADAPTER::AddLibraries( const std::vector& aNick if( loadedSymbols.size() > 0 ) { - for( const std::pair>& pair : loadedSymbols ) + for( const std::pair>& pair : loadedSymbols ) { std::vector treeItems( pair.second.begin(), pair.second.end() ); DoAddLibrary( pair.first, m_libs->GetDescription( pair.first ), treeItems, false );