From 6791c0cebc862673acdae1756dd63c366c7d12cd Mon Sep 17 00:00:00 2001 From: Jonathan Guinet <jonathan.guinet@c-s.fr> Date: Thu, 27 Oct 2011 14:50:47 +0200 Subject: [PATCH] WRG: remove warning uninitialised variables. --- .../otbForwardBackwardProjectionConsistency.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Testing/Code/Projections/otbForwardBackwardProjectionConsistency.cxx b/Testing/Code/Projections/otbForwardBackwardProjectionConsistency.cxx index a9417cf5e7..089c2dfc05 100644 --- a/Testing/Code/Projections/otbForwardBackwardProjectionConsistency.cxx +++ b/Testing/Code/Projections/otbForwardBackwardProjectionConsistency.cxx @@ -47,8 +47,8 @@ int otbForwardBackwardProjectionConsistency(int argc, char* argv[]) bool pass = true; - double accSumPx; - double accSum2Px; + double accSumPx=0.0; + double accSum2Px=0.0; unsigned int identityCounter = 0; @@ -75,7 +75,7 @@ int otbForwardBackwardProjectionConsistency(int argc, char* argv[]) // demHandler->OpenDEMDirectory(demDir); // demHandler->OpenGeoidFile(geoidFile); TODO: use geoid - // Instanciate Image->WGS transform + // Instantiate Image->WGS transform TransformType::Pointer img2wgs = TransformType::New(); img2wgs->SetInputProjectionRef(reader->GetOutput()->GetProjectionRef()); img2wgs->SetInputKeywordList(reader->GetOutput()->GetImageKeywordlist()); @@ -83,7 +83,7 @@ int otbForwardBackwardProjectionConsistency(int argc, char* argv[]) img2wgs->SetDEMDirectory(demDir); img2wgs->InstanciateTransform(); - // Instanciate WGS->Image transform + // Instantiate WGS->Image transform TransformType::Pointer wgs2img = TransformType::New(); wgs2img->SetInputProjectionRef(wgsRef); wgs2img->SetOutputProjectionRef(reader->GetOutput()->GetProjectionRef()); -- GitLab