Fix warnings to build with Werror flag

This commit is contained in:
2021-09-28 00:38:33 +01:00
parent 4aebcb979c
commit 2c89e47b8a
51 changed files with 338 additions and 407 deletions
+2 -6
View File
@@ -24,8 +24,6 @@
#include "InterFrameVariance.h"
#include "lib/LibMemory.h"
InterFrameVariance::InterFrameVariance()
{
/* Module Definition */
@@ -56,7 +54,8 @@ bool InterFrameVariance::create( std::vector<CalypFrame*> apcFrameList )
m_pcFrameVariance =
new CalypFrame( apcFrameList[0]->getWidth(), apcFrameList[0]->getHeight(), CLP_GRAY, 8 );
getMem2D( &m_pVariance, apcFrameList[0]->getHeight(), apcFrameList[0]->getWidth() );
m_pVariance = CalypPlane<double>{ apcFrameList[0]->getWidth(), apcFrameList[0]->getHeight() };
return true;
}
@@ -105,9 +104,6 @@ CalypFrame* InterFrameVariance::process( std::vector<CalypFrame*> apcFrameList )
void InterFrameVariance::destroy()
{
if( m_pVariance )
freeMem2D( m_pVariance );
m_pVariance = NULL;
if( m_pcFrameVariance )
delete m_pcFrameVariance;
m_pcFrameVariance = NULL;