Fix minor compil warnings

This commit is contained in:
jean-pierre charras
2018-01-26 09:35:22 +01:00
parent 0d532b43de
commit d54418c14a
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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 "
+2 -2
View File
@@ -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();