diff --git a/eeschema/eeschema_config.cpp b/eeschema/eeschema_config.cpp index 466d0f7ab3..b492effc8e 100644 --- a/eeschema/eeschema_config.cpp +++ b/eeschema/eeschema_config.cpp @@ -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,17 +652,17 @@ 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 - for ( i = 0; i < m_findStringHistoryList.GetCount() && i < FR_HISTORY_LIST_CNT; i++ ) + for( i = 0; i < m_findStringHistoryList.GetCount() && i < FR_HISTORY_LIST_CNT; i++ ) { entry.Printf( FindStringHistoryEntry, i ); cfg->Write( entry, m_findStringHistoryList[ i ] ); } - for ( i = 0; i < m_replaceStringHistoryList.GetCount() && i < FR_HISTORY_LIST_CNT; i++ ) + for( i = 0; i < m_replaceStringHistoryList.GetCount() && i < FR_HISTORY_LIST_CNT; i++ ) { entry.Printf( ReplaceStringHistoryEntry, i ); cfg->Write( entry, m_replaceStringHistoryList[ i ] ); diff --git a/pcbnew/drc_clearance_test_functions.cpp b/pcbnew/drc_clearance_test_functions.cpp index 2a3a0964af..0f905d93a1 100644 --- a/pcbnew/drc_clearance_test_functions.cpp +++ b/pcbnew/drc_clearance_test_functions.cpp @@ -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;