7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 19:13:44 +00:00

Fix some warnings.

This commit is contained in:
Alex Shvartzkop 2024-11-03 00:01:26 +03:00
parent 72266f5638
commit bc7d5c821c
3 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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() )
{

View File

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