Browse Source

Fix compile warnings

7.0
Seth Hillbrand 3 years ago
parent
commit
a0865082fb
  1. 2
      common/plotters/PDF_plotter.cpp
  2. 4
      pcbnew/dialogs/dialog_net_inspector.cpp

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

4
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<LIST_ITEM_ITER> addItem( std::unique_ptr<LIST_ITEM> aItem )

Loading…
Cancel
Save