Fix build errors and warnings from CADSTAR
This commit is contained in:
parent
5efec4cd51
commit
3d661585dd
|
@ -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
|
// Update the pin numbers to match those defined in the Cadstar part
|
||||||
for( auto& [storedPinNum, termID] : m_symDefTerminalsMap[symbolID] )
|
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 );
|
LIB_PIN* pin = kiSymDef->GetPin( storedPinNum );
|
||||||
size_t termIdx = size_t( termID ) - 1;
|
size_t termIdx = size_t( termID ) - 1;
|
||||||
|
|
||||||
|
|
|
@ -32,13 +32,14 @@
|
||||||
#include <plotters/plotter.h> // PLOT_DASH_TYPE
|
#include <plotters/plotter.h> // PLOT_DASH_TYPE
|
||||||
#include <pin_type.h> // ELECTRICAL_PINTYPE
|
#include <pin_type.h> // ELECTRICAL_PINTYPE
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
#include <wx/filename.h>
|
#include <wx/filename.h>
|
||||||
#include <wx/string.h>
|
#include <wx/string.h>
|
||||||
|
|
||||||
|
struct CADSTAR_PART_ENTRY;
|
||||||
class BUS_ALIAS;
|
class BUS_ALIAS;
|
||||||
class CADSTAR_PART_ENTRY;
|
|
||||||
class EDA_TEXT;
|
class EDA_TEXT;
|
||||||
class TEXT_SPIN_STYLE;
|
class TEXT_SPIN_STYLE;
|
||||||
class LIB_FIELD;
|
class LIB_FIELD;
|
||||||
|
|
|
@ -30,6 +30,8 @@
|
||||||
#include <cadstar_pcb_archive_plugin.h>
|
#include <cadstar_pcb_archive_plugin.h>
|
||||||
#include <board.h>
|
#include <board.h>
|
||||||
#include <footprint.h>
|
#include <footprint.h>
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
#include <set>
|
#include <set>
|
||||||
|
|
||||||
class BOARD;
|
class BOARD;
|
||||||
|
|
Loading…
Reference in New Issue