Fix a few Coverity warnings.

This commit is contained in:
jean-pierre charras 2020-09-20 11:32:47 +02:00
parent 2751c67746
commit 0b03d8a5ff
2 changed files with 15 additions and 1 deletions

View File

@ -125,6 +125,18 @@ BOARD_ADAPTER::BOARD_ADAPTER() :
m_F_Cu_PlatedPads_poly = nullptr;
m_B_Cu_PlatedPads_poly = nullptr;
// Avoid raytracing options not initialized:
m_raytrace_nrsamples_shadows = 0;
m_raytrace_nrsamples_reflections = 0;
m_raytrace_nrsamples_refractions = 0;
m_raytrace_spread_shadows = 0.0;
m_raytrace_spread_reflections = 0.0;
m_raytrace_spread_refractions = 0.0;
m_raytrace_recursivelevel_reflections = 0;
m_raytrace_recursivelevel_refractions = 0;
}

View File

@ -137,9 +137,11 @@ public:
{
switch( aSeverity )
{
case RPT_SEVERITY_ERROR:
case RPT_SEVERITY_ERROR:
m_log->SetColor( CONSOLE_LOG::RED );
m_log->Print("ERROR | ");
break;
default:
m_log->SetColor( CONSOLE_LOG::DEFAULT );
m_log->Print(" | ");