Fix minor compil and Coverity warnings (not initialized vars)

This commit is contained in:
jean-pierre charras 2023-10-23 19:48:45 +02:00
parent 0cf6679bfe
commit 4ffa013467
4 changed files with 6 additions and 2 deletions

View File

@ -141,7 +141,9 @@ void STATUS_TEXT_POPUP::SetTextColor( const wxColour& aColor )
STATUS_MIN_MAX_POPUP::STATUS_MIN_MAX_POPUP( EDA_DRAW_FRAME* aFrame ) :
STATUS_POPUP( aFrame ),
m_frame( aFrame )
m_frame( aFrame ),
m_min( 0.0 ),
m_max( 0.0 )
{
m_icon = new wxStaticBitmap( m_panel, wxID_ANY, KiBitmap( BITMAPS::checked_ok ),
wxDefaultPosition, wxSize( 12, 12 ) );

View File

@ -44,6 +44,7 @@ GRAPHICS_CLEANER::GRAPHICS_CLEANER( DRAWINGS& aDrawings, FOOTPRINT* aParentFootp
m_toolMgr( aToolMgr ),
m_dryRun( true ),
m_epsilon( 0 ),
m_outlinesTolerance( 0 ),
m_itemsList( nullptr )
{
}

View File

@ -84,6 +84,7 @@ public:
m_cornerRadiusPercentage = 100;
m_singleSided = false;
m_initialSide = MEANDER_SIDE_LEFT;
m_lengthTolerance = 0;
}
void SetTargetLength( long long int aOpt )

View File

@ -1441,7 +1441,7 @@ int PCB_CONTROL::UpdateMessagePanel( const TOOL_EVENT& aEvent )
{
SEG trackSeg( track->GetStart(), track->GetEnd() );
PCB_TRACK* coupledItem = nullptr;
SEG::ecoord closestDist_sq;
SEG::ecoord closestDist_sq = 0;
for( PCB_TRACK* candidate : m_frame->GetBoard()->Tracks() )
{