diff --git a/eeschema/dialogs/dialog_spice_model.cpp b/eeschema/dialogs/dialog_spice_model.cpp index 76ab0f4e45..b5f72cce2d 100644 --- a/eeschema/dialogs/dialog_spice_model.cpp +++ b/eeschema/dialogs/dialog_spice_model.cpp @@ -546,7 +546,7 @@ bool DIALOG_SPICE_MODEL::generatePowerSource( wxString& aTarget ) const // all empty useTrans = false; } - else if( std::distance( genericControls.begin(), first_empty ) < genericReqParamsCount ) + else if( std::distance( genericControls.begin(), first_empty ) < (int)genericReqParamsCount ) { DisplayError( nullptr, wxString::Format( wxT( "You need to specify at least the " diff --git a/eeschema/erc.cpp b/eeschema/erc.cpp index 13aa973204..084de8579f 100644 --- a/eeschema/erc.cpp +++ b/eeschema/erc.cpp @@ -246,7 +246,7 @@ int TestMultiunitFootprints( SCH_SHEET_LIST& aSheetList ) wxString fp; wxString unitName; - for( int i = 0; i < component.second.GetCount(); ++i ) + for( unsigned i = 0; i < component.second.GetCount(); ++i ) { SCH_COMPONENT* cmp = refList.GetItem( i ).GetComp(); SCH_SHEET_PATH sheetPath = refList.GetItem( i ).GetSheetPath(); @@ -260,7 +260,7 @@ int TestMultiunitFootprints( SCH_SHEET_LIST& aSheetList ) } } - for( int i = 0; i < component.second.GetCount(); ++i ) + for( unsigned i = 0; i < component.second.GetCount(); ++i ) { SCH_REFERENCE& ref = refList.GetItem( i ); SCH_COMPONENT* unit = ref.GetComp();