mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 10:13:19 +02:00
Fix various compile warnings
This commit is contained in:
parent
8647da613f
commit
1895ec58a0
@ -529,6 +529,9 @@ void BOARD_ADAPTER::InitSettings( REPORTER* aStatusReporter, REPORTER* aWarningR
|
|||||||
zposBottom = zpos_copperTop_front + 1.0f * zpos_offset;
|
zposBottom = zpos_copperTop_front + 1.0f * zpos_offset;
|
||||||
zposTop = zposBottom + m_nonCopperLayerThickness3DU;
|
zposTop = zposBottom + m_nonCopperLayerThickness3DU;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_layerZcoordTop[layer_id] = zposTop;
|
m_layerZcoordTop[layer_id] = zposTop;
|
||||||
|
@ -38,8 +38,6 @@ private:
|
|||||||
void onThemeChanged( wxSysColourChangedEvent& aEvent );
|
void onThemeChanged( wxSysColourChangedEvent& aEvent );
|
||||||
void onLauncherButtonClick( wxCommandEvent& aEvent );
|
void onLauncherButtonClick( wxCommandEvent& aEvent );
|
||||||
|
|
||||||
private:
|
|
||||||
TOOL_MANAGER* m_toolManager;
|
|
||||||
KICAD_MANAGER_FRAME* m_frame;
|
KICAD_MANAGER_FRAME* m_frame;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -90,8 +90,6 @@ bool DIALOG_EXPORT_ODBPP::Init()
|
|||||||
{
|
{
|
||||||
PCBNEW_SETTINGS* cfg = Pgm().GetSettingsManager().GetAppSettings<PCBNEW_SETTINGS>();
|
PCBNEW_SETTINGS* cfg = Pgm().GetSettingsManager().GetAppSettings<PCBNEW_SETTINGS>();
|
||||||
|
|
||||||
BOARD* board = m_parent->GetBoard();
|
|
||||||
|
|
||||||
m_choiceUnits->SetSelection( cfg->m_ExportODBPP.units );
|
m_choiceUnits->SetSelection( cfg->m_ExportODBPP.units );
|
||||||
m_precision->SetValue( cfg->m_ExportODBPP.precision );
|
m_precision->SetValue( cfg->m_ExportODBPP.precision );
|
||||||
m_cbCompress->SetValue( cfg->m_ExportODBPP.compress );
|
m_cbCompress->SetValue( cfg->m_ExportODBPP.compress );
|
||||||
@ -109,4 +107,4 @@ bool DIALOG_EXPORT_ODBPP::TransferDataFromWindow()
|
|||||||
cfg->m_ExportODBPP.compress = m_cbCompress->GetValue();
|
cfg->m_ExportODBPP.compress = m_cbCompress->GetValue();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -321,7 +321,6 @@ FOOTPRINT* GPCB_FPL_CACHE::parseFOOTPRINT( LINE_READER* aLineReader )
|
|||||||
|
|
||||||
// GPCB unit = 0.01 mils and Pcbnew 0.1.
|
// GPCB unit = 0.01 mils and Pcbnew 0.1.
|
||||||
double conv_unit = NEW_GPCB_UNIT_CONV;
|
double conv_unit = NEW_GPCB_UNIT_CONV;
|
||||||
VECTOR2I textPos;
|
|
||||||
wxString msg;
|
wxString msg;
|
||||||
wxArrayString parameters;
|
wxArrayString parameters;
|
||||||
std::unique_ptr<FOOTPRINT> footprint = std::make_unique<FOOTPRINT>( nullptr );
|
std::unique_ptr<FOOTPRINT> footprint = std::make_unique<FOOTPRINT>( nullptr );
|
||||||
|
@ -5456,8 +5456,7 @@ void PCB_IO_KICAD_SEXPR_PARSER::parseGROUP( BOARD_ITEM* aParent )
|
|||||||
wxCHECK_RET( CurTok() == T_group,
|
wxCHECK_RET( CurTok() == T_group,
|
||||||
wxT( "Cannot parse " ) + GetTokenString( CurTok() ) + wxT( " as PCB_GROUP." ) );
|
wxT( "Cannot parse " ) + GetTokenString( CurTok() ) + wxT( " as PCB_GROUP." ) );
|
||||||
|
|
||||||
VECTOR2I pt;
|
T token;
|
||||||
T token;
|
|
||||||
|
|
||||||
m_groupInfos.push_back( GROUP_INFO() );
|
m_groupInfos.push_back( GROUP_INFO() );
|
||||||
GROUP_INFO& groupInfo = m_groupInfos.back();
|
GROUP_INFO& groupInfo = m_groupInfos.back();
|
||||||
@ -6004,7 +6003,6 @@ ZONE* PCB_IO_KICAD_SEXPR_PARSER::parseZONE( BOARD_ITEM_CONTAINER* aParent )
|
|||||||
ZONE_BORDER_DISPLAY_STYLE hatchStyle = ZONE_BORDER_DISPLAY_STYLE::NO_HATCH;
|
ZONE_BORDER_DISPLAY_STYLE hatchStyle = ZONE_BORDER_DISPLAY_STYLE::NO_HATCH;
|
||||||
|
|
||||||
int hatchPitch = ZONE::GetDefaultHatchPitch();
|
int hatchPitch = ZONE::GetDefaultHatchPitch();
|
||||||
VECTOR2I pt;
|
|
||||||
T token;
|
T token;
|
||||||
int tmp;
|
int tmp;
|
||||||
wxString netnameFromfile; // the zone net name find in file
|
wxString netnameFromfile; // the zone net name find in file
|
||||||
|
@ -183,7 +183,10 @@ VECTOR2I GetShapePosition( const PCB_SHAPE& aShape )
|
|||||||
case SHAPE_T::POLY:
|
case SHAPE_T::POLY:
|
||||||
case SHAPE_T::BEZIER:
|
case SHAPE_T::BEZIER:
|
||||||
case SHAPE_T::SEGMENT:
|
case SHAPE_T::SEGMENT:
|
||||||
case SHAPE_T::ARC: pos = aShape.GetPosition(); break;
|
case SHAPE_T::ARC:
|
||||||
|
case SHAPE_T::UNDEFINED:
|
||||||
|
pos = aShape.GetPosition();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return pos;
|
return pos;
|
||||||
|
@ -845,7 +845,7 @@ void PCB_POINT_EDITOR::editArcEndpointKeepTangent( PCB_SHAPE* aArc, const VECTOR
|
|||||||
v2 = p2 - aCenter;
|
v2 = p2 - aCenter;
|
||||||
v3 = p3 - aCenter;
|
v3 = p3 - aCenter;
|
||||||
|
|
||||||
VECTOR2D u1, u2, u3;
|
VECTOR2D u1, u2;
|
||||||
|
|
||||||
// A point cannot be both the center and on the arc.
|
// A point cannot be both the center and on the arc.
|
||||||
if( ( v1.EuclideanNorm() == 0 ) || ( v2.EuclideanNorm() == 0 ) )
|
if( ( v1.EuclideanNorm() == 0 ) || ( v2.EuclideanNorm() == 0 ) )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user