Cleanup some compiler warnings

This commit is contained in:
Ian McInerney 2021-03-19 21:00:24 +00:00
parent 30ac8de734
commit 6c3cf33170
2 changed files with 2 additions and 2 deletions

View File

@ -372,7 +372,7 @@ std::set<SCH_ITEM*> 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<int> exitAngles[ 2 ];

View File

@ -101,7 +101,7 @@ void SYMBOL_TREE_MODEL_ADAPTER::AddLibraries( const std::vector<wxString>& aNick
if( loadedSymbols.size() > 0 )
{
for( const std::pair<wxString, std::vector<LIB_PART*>>& pair : loadedSymbols )
for( const std::pair<const wxString, std::vector<LIB_PART*>>& pair : loadedSymbols )
{
std::vector<LIB_TREE_ITEM*> treeItems( pair.second.begin(), pair.second.end() );
DoAddLibrary( pair.first, m_libs->GetDescription( pair.first ), treeItems, false );