Fix build warnings

This commit is contained in:
Marek Roszko 2024-03-23 08:34:33 -04:00
parent d7abed2d60
commit 490dbfdf83
3 changed files with 5 additions and 5 deletions

View File

@ -197,7 +197,7 @@ void DIALOG_SIM_COMMAND::SetPlotSettings( const SIM_TAB* aSimTab )
m_lockY1->SetLabel( wxString::Format( m_lockY1->GetLabel(), plotTab->GetLabelY1() ) );
m_y1Units->SetLabel( plotTab->GetUnitsY1() );
double min, max;
double min = 0.0, max = 0.0;
bool locked = plotTab->GetY1Scale( &min, &max );
m_lockY1->SetValue( locked );
@ -214,7 +214,7 @@ void DIALOG_SIM_COMMAND::SetPlotSettings( const SIM_TAB* aSimTab )
m_lockY2->SetLabel( wxString::Format( m_lockY2->GetLabel(), plotTab->GetLabelY2() ) );
m_y2Units->SetLabel( plotTab->GetUnitsY2() );
double min, max;
double min = 0.0, max = 0.0;
bool locked = plotTab->GetY2Scale( &min, &max );
m_lockY2->SetValue( locked );
@ -231,7 +231,7 @@ void DIALOG_SIM_COMMAND::SetPlotSettings( const SIM_TAB* aSimTab )
m_lockY3->SetLabel( wxString::Format( m_lockY3->GetLabel(), plotTab->GetLabelY3() ) );
m_y3Units->SetLabel( plotTab->GetUnitsY3() );
double min, max;
double min = 0.0, max = 0.0;
bool locked = plotTab->GetY3Scale( &min, &max );
m_lockY3->SetValue( locked );

View File

@ -4296,7 +4296,7 @@ void SCH_IO_KICAD_SEXPR_PARSER::parseSchTextBoxContent( SCH_TEXTBOX* aTextBox )
break;
default:
if( SCH_TABLECELL* cell = dynamic_cast<SCH_TABLECELL*>( aTextBox ) )
if( dynamic_cast<SCH_TABLECELL*>( aTextBox ) != nullptr )
Expecting( "at, size, stroke, fill, effects, span or uuid" );
else
Expecting( "at, size, stroke, fill, effects or uuid" );

View File

@ -3516,7 +3516,7 @@ void PCB_IO_KICAD_SEXPR_PARSER::parseTextBoxContent( PCB_TEXTBOX* aTextBox )
break;
default:
if( PCB_TABLECELL* cell = dynamic_cast<PCB_TABLECELL*>( aTextBox ) )
if( dynamic_cast<PCB_TABLECELL*>( aTextBox ) != nullptr )
Expecting( "locked, start, pts, angle, width, layer, effects, span, render_cache, uuid or tstamp" );
else
Expecting( "locked, start, pts, angle, width, layer, effects, render_cache, uuid or tstamp" );