Minor compil warnings fixes.

This commit is contained in:
jean-pierre charras 2025-07-09 15:38:33 +02:00
parent d2a623719b
commit 5f8547dc7e
3 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ wxString FOOTPRINTS_LISTBOX::GetSelectedFootprint()
wxString footprintName;
int ii = GetFirstSelected();
if( ii >= 0 && ii < m_footprintList.size() )
if( ii >= 0 && ii < (int)m_footprintList.size() )
{
wxString msg = m_footprintList[ii];
msg.Trim( true );

View File

@ -1826,7 +1826,6 @@ int SCH_EDITOR_CONTROL::Paste( const TOOL_EVENT& aEvent )
if( item->Type() == SCH_SHEET_T )
{
SCH_SHEET* sheet = static_cast<SCH_SHEET*>( item );
SCH_FIELD* nameField = sheet->GetField( FIELD_T::SHEET_NAME );
wxFileName srcFn = sheet->GetFileName();
if( srcFn.IsRelative() )

View File

@ -58,6 +58,7 @@ DIFF_PAIR_PLACER::DIFF_PAIR_PLACER( ROUTER* aRouter ) :
m_currentEndItem = nullptr;
m_currentTraceOk = false;
m_idle = true;
m_hasFixedAnything = false;
}
DIFF_PAIR_PLACER::~DIFF_PAIR_PLACER()
@ -397,7 +398,7 @@ bool DIFF_PAIR_PLACER::rhShoveOnly( const VECTOR2I& aP )
// bring back previous state
m_currentTrace.SetShape( pLine.CLine(), nLine.CLine() );
}
return m_fitOk;
}