From 055589387cb524058b7264d62f56cad90a0e7440 Mon Sep 17 00:00:00 2001
From: Thomas Feuvrier <thomas.feuvrier@c-s.fr>
Date: Tue, 13 Oct 2009 11:58:11 +0200
Subject: [PATCH] WRG: Remove warning compilation.

---
 Code/Common/otbCommandLineArgumentParser.cxx     | 4 ++--
 Code/Gui/otbFltkWriterWatcher.cxx                | 2 +-
 Code/IO/otbJPEG2000ImageIO.cxx                   | 4 ++--
 Code/Learning/otbChangeProfileKernelFunctor.cxx  | 2 +-
 Code/Learning/otbMixturePolyRBFKernelFunctor.cxx | 2 +-
 Code/Learning/otbSpectralAngleKernelFunctor.cxx  | 2 +-
 Code/Visu/otbGluPolygonDrawingHelper.cxx         | 2 +-
 Code/Visualization/otbCircleGlComponent.cxx      | 2 +-
 Code/Visualization/otbCrossGlComponent.cxx       | 2 +-
 Testing/Code/otbTestHelper.cxx                   | 2 +-
 10 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/Code/Common/otbCommandLineArgumentParser.cxx b/Code/Common/otbCommandLineArgumentParser.cxx
index c3747adcfa..40ea7a8ca3 100644
--- a/Code/Common/otbCommandLineArgumentParser.cxx
+++ b/Code/Common/otbCommandLineArgumentParser.cxx
@@ -28,7 +28,7 @@ namespace otb
 
 // --------- CommandLineArgumentParseResult  ----------------------------------------
 void CommandLineArgumentParseResult
-::PrintSelf(std::ostream& os/*, itk::Indent indent*/)const
+::PrintSelf(std::ostream& /*os*/ /*, itk::Indent indent*/)const
 {
 
 }
@@ -179,7 +179,7 @@ void CommandLineArgumentParser
 }
 
 void CommandLineArgumentParser
-::ParseGUI(CommandLineArgumentParseResult * outResult,bool failOnUnknownTrailingParameters )
+::ParseGUI(CommandLineArgumentParseResult * /*outResult*/,bool /*failOnUnknownTrailingParameters*/ )
 {
   /* OTB Comment : Todo : use OTB_USE_VISU_GUI cmake option for generate this method
       Fl_Window *window = new Fl_Window(320,(m_OptionList.size()+2)*50);
diff --git a/Code/Gui/otbFltkWriterWatcher.cxx b/Code/Gui/otbFltkWriterWatcher.cxx
index d1cd88f21f..3d4cb14c40 100644
--- a/Code/Gui/otbFltkWriterWatcher.cxx
+++ b/Code/Gui/otbFltkWriterWatcher.cxx
@@ -45,7 +45,7 @@ FltkWriterWatcher
 
 
 void FltkWriterWatcher
-::BuildGUI(int x, int y, int w, int h,const char * comment)
+::BuildGUI(int x, int y, int w, int h,const char * /*comment*/)
 {
   m_Window = new Fl_Window(x,y,w+10,h+15);
   m_Window->label(m_Comment.c_str());
diff --git a/Code/IO/otbJPEG2000ImageIO.cxx b/Code/IO/otbJPEG2000ImageIO.cxx
index 3bcc3b3c1c..c863984e80 100644
--- a/Code/IO/otbJPEG2000ImageIO.cxx
+++ b/Code/IO/otbJPEG2000ImageIO.cxx
@@ -499,7 +499,7 @@ void JPEG2000ImageIO::ReadImageInformation()
 }
 
 
-bool JPEG2000ImageIO::CanWriteFile( const char* filename )
+bool JPEG2000ImageIO::CanWriteFile( const char* /*filename*/ )
 {
   return false;
 //     std::string lFileName(filename);
@@ -518,7 +518,7 @@ bool JPEG2000ImageIO::CanWriteFile( const char* filename )
 //       }
 }
 
-void JPEG2000ImageIO::Write(const void* buffer)
+void JPEG2000ImageIO::Write(const void* /*buffer*/)
 {
   // char * charstarbuffer = static_cast<char *>(buffer);
 
diff --git a/Code/Learning/otbChangeProfileKernelFunctor.cxx b/Code/Learning/otbChangeProfileKernelFunctor.cxx
index daa9754433..80c20722e0 100644
--- a/Code/Learning/otbChangeProfileKernelFunctor.cxx
+++ b/Code/Learning/otbChangeProfileKernelFunctor.cxx
@@ -48,7 +48,7 @@ ChangeProfileKernelFunctor
 double
 ChangeProfileKernelFunctor
 ::operator() ( const svm_node * x, const svm_node * y,
-               const svm_parameter & param ) const
+               const svm_parameter & /*param*/ ) const
 {
   double theMax(0.);
   double theCur(0.);
diff --git a/Code/Learning/otbMixturePolyRBFKernelFunctor.cxx b/Code/Learning/otbMixturePolyRBFKernelFunctor.cxx
index 9965435496..9b9d5647ed 100644
--- a/Code/Learning/otbMixturePolyRBFKernelFunctor.cxx
+++ b/Code/Learning/otbMixturePolyRBFKernelFunctor.cxx
@@ -43,7 +43,7 @@ MixturePolyRBFKernelFunctor
 double
 MixturePolyRBFKernelFunctor
 ::operator() ( const svm_node * x, const svm_node * y,
-               const svm_parameter & param ) const
+               const svm_parameter & /*param*/ ) const
 {
   double kernel_poly = 0.0;
   if ( m_Mixture > 0.0 )
diff --git a/Code/Learning/otbSpectralAngleKernelFunctor.cxx b/Code/Learning/otbSpectralAngleKernelFunctor.cxx
index 01eccdf66e..882dcb87ef 100644
--- a/Code/Learning/otbSpectralAngleKernelFunctor.cxx
+++ b/Code/Learning/otbSpectralAngleKernelFunctor.cxx
@@ -44,7 +44,7 @@ SpectralAngleKernelFunctor
 double
 SpectralAngleKernelFunctor
 ::operator()( const svm_node * x, const svm_node * y,
-              const svm_parameter & param ) const
+              const svm_parameter & /*param*/ ) const
 {
   double mq = m_Coef + SAM( x, y );
 
diff --git a/Code/Visu/otbGluPolygonDrawingHelper.cxx b/Code/Visu/otbGluPolygonDrawingHelper.cxx
index f52ef0c0e6..a978768b1c 100644
--- a/Code/Visu/otbGluPolygonDrawingHelper.cxx
+++ b/Code/Visu/otbGluPolygonDrawingHelper.cxx
@@ -37,7 +37,7 @@ extern "C"
 {
   typedef GLvoid (CALLBACK * FunctionPointerType)();
 
-  void CALLBACK CombineCallback(GLdouble coords[3],GLdouble * data[4], GLfloat weights[4],GLdouble **dataOut)
+  void CALLBACK CombineCallback(GLdouble coords[3],GLdouble * /*data*/[4], GLfloat /*weights*/[4],GLdouble **dataOut)
   {
     GLdouble * vertex = new GLdouble[3];
     vertex[0] = coords[0];
diff --git a/Code/Visualization/otbCircleGlComponent.cxx b/Code/Visualization/otbCircleGlComponent.cxx
index a01d78a893..80ac072013 100644
--- a/Code/Visualization/otbCircleGlComponent.cxx
+++ b/Code/Visualization/otbCircleGlComponent.cxx
@@ -92,7 +92,7 @@ CircleGlComponent
   
 void 
 CircleGlComponent
-::Render(unsigned int id, const RegionType & extent, const AffineTransformType * space2ScreenTransform)
+::Render(unsigned int id, const RegionType & /*extent*/, const AffineTransformType * space2ScreenTransform)
 {
   glColor4d(m_ColorList[id][0],m_ColorList[id][1],m_ColorList[id][2],m_ColorList[id][3]);
 
diff --git a/Code/Visualization/otbCrossGlComponent.cxx b/Code/Visualization/otbCrossGlComponent.cxx
index 6b552f7346..ff96f9bcce 100644
--- a/Code/Visualization/otbCrossGlComponent.cxx
+++ b/Code/Visualization/otbCrossGlComponent.cxx
@@ -92,7 +92,7 @@ CrossGlComponent
   
 void
 CrossGlComponent
-::Render(unsigned int id, const RegionType & extent, const AffineTransformType * space2ScreenTransform)
+::Render(unsigned int id, const RegionType & /*extent*/, const AffineTransformType * space2ScreenTransform)
 {
   glColor4d(m_ColorList[id][0],m_ColorList[id][1],m_ColorList[id][2],m_ColorList[id][3]);
 
diff --git a/Testing/Code/otbTestHelper.cxx b/Testing/Code/otbTestHelper.cxx
index 9854adeee0..a85a46a5c1 100644
--- a/Testing/Code/otbTestHelper.cxx
+++ b/Testing/Code/otbTestHelper.cxx
@@ -494,7 +494,7 @@ int TestHelper::RegressionTestImage(int cpt, const char *testImageFilename, cons
 }
 
 int TestHelper::RegressionTestMetaData(const char *testImageFilename, const char *baselineImageFilename,
-    const double toleranceDiffPixelImage) const
+    const double /*toleranceDiffPixelImage*/) const
 {
   // Use the factory mechanism to read the test and baseline files and convert them to double
   typedef otb::Image<double, ITK_TEST_DIMENSION_MAX> ImageType;
-- 
GitLab