Browse Source

Fix some warnings.

pcb_db
Alex Shvartzkop 1 year ago
parent
commit
bc7d5c821c
  1. 2
      pcbnew/footprint_edit_frame.cpp
  2. 2
      qa/tools/pns/pns_log_file.cpp
  3. 2
      qa/tools/pns/pns_log_player.cpp

2
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 );
};

2
qa/tools/pns/pns_log_file.cpp

@ -45,7 +45,7 @@ std::vector<BOARD_CONNECTED_ITEM*> 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() )
{

2
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] )

Loading…
Cancel
Save