diff --git a/common/plotters/PDF_plotter.cpp b/common/plotters/PDF_plotter.cpp index 1c31e027a8..b2bd9fca66 100644 --- a/common/plotters/PDF_plotter.cpp +++ b/common/plotters/PDF_plotter.cpp @@ -983,7 +983,7 @@ void PDF_PLOTTER::emitOutlineNode( OUTLINE_NODE* node, int parentHandle, int nex if( node->children.size() > 0 ) { - fprintf( m_outputFile, " /Count %lld\n", -1*node->children.size() ); + fprintf( m_outputFile, " /Count %zu\n", -1*node->children.size() ); fprintf( m_outputFile, " /First %d 0 R\n", node->children.front()->entryHandle ); fprintf( m_outputFile, " /Last %d 0 R\n", node->children.back()->entryHandle ); } diff --git a/pcbnew/dialogs/dialog_net_inspector.cpp b/pcbnew/dialogs/dialog_net_inspector.cpp index 1af112caa3..732b3ea46f 100644 --- a/pcbnew/dialogs/dialog_net_inspector.cpp +++ b/pcbnew/dialogs/dialog_net_inspector.cpp @@ -481,7 +481,7 @@ public: m_items.begin(), m_items.end(), aNetCode, LIST_ITEM_NETCODE_CMP_LESS() ); if( i == m_items.end() || ( *i )->GetNetCode() != aNetCode ) - return {}; + return std::nullopt; return { i }; } @@ -491,7 +491,7 @@ public: if( aNet != nullptr ) return findItem( aNet->GetNetCode() ); else - return {}; + return std::nullopt; } std::optional addItem( std::unique_ptr aItem )