From 5f7be9e9de5b5df3dd35d9fbc669f1e18af61613 Mon Sep 17 00:00:00 2001
From: Cyrille Valladeau <cyrille.valladeau@c-s.fr>
Date: Thu, 18 Nov 2010 11:04:58 +0100
Subject: [PATCH] WRG: unused variable

---
 Code/Common/otbVariableLengthVectorConverter.txx     | 2 +-
 Code/IO/otbDEMToImageGenerator.txx                   | 1 -
 Testing/Code/BasicFilters/otbBandMathImageFilter.cxx | 3 +--
 3 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/Code/Common/otbVariableLengthVectorConverter.txx b/Code/Common/otbVariableLengthVectorConverter.txx
index 42931131a5..ec25d9722f 100644
--- a/Code/Common/otbVariableLengthVectorConverter.txx
+++ b/Code/Common/otbVariableLengthVectorConverter.txx
@@ -91,7 +91,7 @@ typename VariableLengthVectorConverter< itk::FixedArray<TInternalInputType, VArr
 VariableLengthVectorConverter< itk::FixedArray<TInternalInputType, VArrayDimension>, TPrecisionType>
 ::Convert(InputType input)
 {
-  unsigned int p, q, rsltIdx = 0;
+  unsigned int rsltIdx = 0;
   OutputType result;
 
   result.SetSize(VArrayDimension);
diff --git a/Code/IO/otbDEMToImageGenerator.txx b/Code/IO/otbDEMToImageGenerator.txx
index 926922f5dd..ec926c4f90 100644
--- a/Code/IO/otbDEMToImageGenerator.txx
+++ b/Code/IO/otbDEMToImageGenerator.txx
@@ -116,7 +116,6 @@ DEMToImageGenerator<TDEMImage>
   // Walk the output image, evaluating the height at each pixel
   IndexType currentindex;
   PointType phyPoint;
-  double    height;
   PointType geoPoint;
 
   for (outIt.GoToBegin(); !outIt.IsAtEnd(); ++outIt)
diff --git a/Testing/Code/BasicFilters/otbBandMathImageFilter.cxx b/Testing/Code/BasicFilters/otbBandMathImageFilter.cxx
index dc02e71901..f6b8e209ae 100644
--- a/Testing/Code/BasicFilters/otbBandMathImageFilter.cxx
+++ b/Testing/Code/BasicFilters/otbBandMathImageFilter.cxx
@@ -193,8 +193,7 @@ int otbBandMathImageFilterWithIdx( int argc, char* argv[])
   typedef otb::Image<PixelType, 2>                          ImageType;
   typedef otb::BandMathImageFilter<ImageType>               FilterType;
   typedef otb::StreamingImageFileWriter<ImageType>          WriterType;
-  
-  unsigned int i;
+ 
   const unsigned int N = 100;
   unsigned int FAIL_FLAG = 0;
 
-- 
GitLab