From 2f8f7d1996e193a9b6e72869f6b598a206c85976 Mon Sep 17 00:00:00 2001
From: Rashad Kanavath <rashad.kanavath@c-s.fr>
Date: Tue, 1 Dec 2015 18:41:27 +0100
Subject: [PATCH] WRG: fix maybe-uninitialized. approaching zero warning
 dashboard

---
 ...otbBSplinesInterpolateDisplacementFieldGeneratorNew.cxx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Modules/Registration/DisplacementField/test/otbBSplinesInterpolateDisplacementFieldGeneratorNew.cxx b/Modules/Registration/DisplacementField/test/otbBSplinesInterpolateDisplacementFieldGeneratorNew.cxx
index 880ff3d607..823122fcbc 100644
--- a/Modules/Registration/DisplacementField/test/otbBSplinesInterpolateDisplacementFieldGeneratorNew.cxx
+++ b/Modules/Registration/DisplacementField/test/otbBSplinesInterpolateDisplacementFieldGeneratorNew.cxx
@@ -22,11 +22,12 @@
 
 int otbBSplinesInterpolateDisplacementFieldGeneratorNew(int itkNotUsed(argc), char * itkNotUsed(argv) [])
 {
-  const unsigned int Dimension = 2;
+  const unsigned int Dimension = 3;
   typedef double                                                                     PixelType;
-  typedef otb::VectorImage<PixelType, Dimension>                                     ImageType;
-  typedef ImageType::PointType                                                       PointType;
+  typedef otb::VectorImage<PixelType, 2>                                             ImageType;
+  typedef itk::FixedArray<double, Dimension>                                         PointType;
   typedef itk::PointSet<PointType, Dimension>                                        PointSetType;
+
   typedef otb::BSplinesInterpolateDisplacementFieldGenerator<PointSetType, ImageType> FilterType;
 
   // Instantiating object
-- 
GitLab