wxWidgets Debug builds apparently have some tricky technique to validate

the match between wxString::Format() or wxString::Printf() format strings
with passed arguments, but does this at runtime, not compile time.
Fix some mismatches.  size_t is a 64 bit type on x86_64 whereas int and
unsigned are 32 bit types.  On 32 bit machines they are all 32 bits so
this error is probably not triggered.
This commit is contained in:
Dick Hollenbeck 2012-02-16 00:17:01 -06:00
parent 4082e12252
commit 35ddad2193
2 changed files with 8 additions and 7 deletions

View File

@ -573,7 +573,7 @@ void SCH_EDIT_FRAME::LoadSettings()
m_findReplaceData->SetReplaceString( cfg->Read( ReplaceStringEntry, wxEmptyString ) );
// Load the find and replace string history list.
for ( size_t i = 0; i < FR_HISTORY_LIST_CNT; i++ )
for( int i = 0; i < FR_HISTORY_LIST_CNT; ++i )
{
wxString tmpHistory;
wxString entry;
@ -652,7 +652,7 @@ void SCH_EDIT_FRAME::SaveSettings()
cfg->Write( ReplaceStringEntry, m_findReplaceData->GetReplaceString() );
// Save the find and replace string history list.
size_t i;
unsigned i;
wxString tmpHistory;
wxString entry; // invoke constructor outside of any loops

View File

@ -701,10 +701,11 @@ bool DRC::checkClearancePadToPad( D_PAD* aRefPad, D_PAD* aPad )
if( !trapezoid2trapezoidDRC( polyref, polycompare, dist_min ) )
diag = false;
}
else // Should not occurs, because aPad and aRefPad are swapped
// to have only aPad shape RECT or TRAP and aRefPad shape TRAP or RECT.
else
{
wxLogDebug( wxT( "unexpected pad shape" ) );
// Should not occur, because aPad and aRefPad are swapped
// to have only aPad shape RECT or TRAP and aRefPad shape TRAP or RECT.
wxLogDebug( wxT( "unexpected pad shape %d") , aPad->GetShape() );
}
break;