Fix minor compil warnings

This commit is contained in:
jean-pierre charras 2018-01-25 13:36:13 +01:00
parent 0d532b43de
commit d54418c14a
2 changed files with 3 additions and 3 deletions

View File

@ -546,7 +546,7 @@ bool DIALOG_SPICE_MODEL::generatePowerSource( wxString& aTarget ) const
// all empty // all empty
useTrans = false; useTrans = false;
} }
else if( std::distance( genericControls.begin(), first_empty ) < genericReqParamsCount ) else if( std::distance( genericControls.begin(), first_empty ) < (int)genericReqParamsCount )
{ {
DisplayError( nullptr, DisplayError( nullptr,
wxString::Format( wxT( "You need to specify at least the " wxString::Format( wxT( "You need to specify at least the "

View File

@ -246,7 +246,7 @@ int TestMultiunitFootprints( SCH_SHEET_LIST& aSheetList )
wxString fp; wxString fp;
wxString unitName; 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_COMPONENT* cmp = refList.GetItem( i ).GetComp();
SCH_SHEET_PATH sheetPath = refList.GetItem( i ).GetSheetPath(); 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_REFERENCE& ref = refList.GetItem( i );
SCH_COMPONENT* unit = ref.GetComp(); SCH_COMPONENT* unit = ref.GetComp();