Fix build errors and warnings from CADSTAR

This commit is contained in:
Roberto Fernandez Bautista 2023-03-16 21:17:40 +01:00
parent 5efec4cd51
commit 3d661585dd
3 changed files with 5 additions and 2 deletions

View File

@ -144,7 +144,7 @@ CADSTAR_SCH_ARCHIVE_LOADER::loadLibPart( const CADSTAR_PART_ENTRY& aPart )
// Update the pin numbers to match those defined in the Cadstar part
for( auto& [storedPinNum, termID] : m_symDefTerminalsMap[symbolID] )
{
wxCHECK( termID > 0 && sym.m_Pins.size() >= termID, nullptr );
wxCHECK( termID > 0 && sym.m_Pins.size() >= size_t( termID ), nullptr );
LIB_PIN* pin = kiSymDef->GetPin( storedPinNum );
size_t termIdx = size_t( termID ) - 1;

View File

@ -32,13 +32,14 @@
#include <plotters/plotter.h> // PLOT_DASH_TYPE
#include <pin_type.h> // ELECTRICAL_PINTYPE
#include <memory>
#include <map>
#include <wx/filename.h>
#include <wx/string.h>
struct CADSTAR_PART_ENTRY;
class BUS_ALIAS;
class CADSTAR_PART_ENTRY;
class EDA_TEXT;
class TEXT_SPIN_STYLE;
class LIB_FIELD;

View File

@ -30,6 +30,8 @@
#include <cadstar_pcb_archive_plugin.h>
#include <board.h>
#include <footprint.h>
#include <memory>
#include <set>
class BOARD;