From bc7d5c821ca8c1d36dd0d42b45e2c2c5892b4702 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Sun, 3 Nov 2024 00:01:26 +0300 Subject: [PATCH] Fix some warnings. --- pcbnew/footprint_edit_frame.cpp | 2 +- qa/tools/pns/pns_log_file.cpp | 2 +- qa/tools/pns/pns_log_player.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pcbnew/footprint_edit_frame.cpp b/pcbnew/footprint_edit_frame.cpp index 2a5f4bf16d..abb6e7ccbc 100644 --- a/pcbnew/footprint_edit_frame.cpp +++ b/pcbnew/footprint_edit_frame.cpp @@ -544,7 +544,7 @@ void FOOTPRINT_EDIT_FRAME::ReloadFootprint( FOOTPRINT* aFootprint ) const wxString openLibLink = wxString::Format( _( "Open in library %s" ), UnescapeString( libName ) ); - const auto openLibraryCopy = [this, aFootprint]( wxHyperlinkEvent& aEvent ) + const auto openLibraryCopy = [this]( wxHyperlinkEvent& aEvent ) { GetToolManager()->RunAction( PCB_ACTIONS::editLibFpInFpEditor ); }; diff --git a/qa/tools/pns/pns_log_file.cpp b/qa/tools/pns/pns_log_file.cpp index 8f78247126..4a97f4fda9 100644 --- a/qa/tools/pns/pns_log_file.cpp +++ b/qa/tools/pns/pns_log_file.cpp @@ -45,7 +45,7 @@ std::vector PNS_LOG_FILE::ItemsById( const PNS::LOGGER::E parents.resize( evt.uuids.size() ); - printf("u %d p %d\n", evt.uuids.size(), parents.size() ); + printf("u %zu p %zu\n", evt.uuids.size(), parents.size() ); for( BOARD_CONNECTED_ITEM* item : m_board->AllConnectedItems() ) { diff --git a/qa/tools/pns/pns_log_player.cpp b/qa/tools/pns/pns_log_player.cpp index b50f8c0997..193708d8d4 100644 --- a/qa/tools/pns/pns_log_player.cpp +++ b/qa/tools/pns/pns_log_player.cpp @@ -110,7 +110,7 @@ void PNS_LOG_PLAYER::ReplayLog( PNS_LOG_FILE* aLog, int aStartEventIndex, int aF auto items = aLog->ItemsById( evt ); PNS::ITEM_SET ritems; - printf("items: %d\n", items.size() ); + printf("items: %zu\n", items.size() ); ITEM* ritem = nullptr; if( items.size() && items[0] )