Reduce compiler warnings.

This commit is contained in:
Jeff Young 2024-06-04 11:18:45 +01:00
parent a74e834b33
commit 26fc2bd071
1 changed files with 3 additions and 3 deletions

View File

@ -3844,14 +3844,14 @@ bool CONNECTION_GRAPH::ercCheckLabels( const CONNECTION_SUBGRAPH* aSubgraph )
const SCH_SHEET_PATH& sheet = aSubgraph->m_sheet;
ERC_SETTINGS& settings = m_schematic->ErcSettings();
bool ok = true;
int pinCount = 0;
size_t pinCount = 0;
bool has_nc = !!aSubgraph->m_no_connect;
std::map<KICAD_T, std::vector<SCH_TEXT*>> label_map;
auto hasPins =
[]( const CONNECTION_SUBGRAPH* aLocSubgraph ) -> int
[]( const CONNECTION_SUBGRAPH* aLocSubgraph ) -> size_t
{
return std::count_if( aLocSubgraph->m_items.begin(), aLocSubgraph->m_items.end(),
[]( const SCH_ITEM* item )
@ -3962,7 +3962,7 @@ bool CONNECTION_GRAPH::ercCheckLabels( const CONNECTION_SUBGRAPH* aSubgraph )
for( SCH_TEXT* text : label_vec )
{
int allPins = pinCount;
size_t allPins = pinCount;
auto it = m_net_name_to_subgraphs_map.find( netName );