diff --git a/Modules/Applications/AppClassification/app/otbZonalStatistics.cxx b/Modules/Applications/AppClassification/app/otbZonalStatistics.cxx
index 452ddfd3440eff566774144dee68e31337990dea..1697e13bde6670ef50672d2c960766ab83f2306b 100644
--- a/Modules/Applications/AppClassification/app/otbZonalStatistics.cxx
+++ b/Modules/Applications/AppClassification/app/otbZonalStatistics.cxx
@@ -93,7 +93,7 @@ public:
     static constexpr size_t m_NbStatsPerBand{4};
     static constexpr size_t m_NbGlobalStats{1};
 
-    size_t OutputSize(const std::array<size_t,1> & itkNotUsed(nbBands)) const
+    size_t OutputSize(const std::array<size_t,1> & ) const
     {
       return m_NbInputComponents*m_NbStatsPerBand+m_NbGlobalStats;
     }
diff --git a/Modules/Applications/AppFiltering/app/otbContrastEnhancement.cxx b/Modules/Applications/AppFiltering/app/otbContrastEnhancement.cxx
index 5cfe775105574eef2a8ed44f89d9b61f2ac358bf..4a1bc5880b271d8ef7b0af3e8b3f69cd7a79de05 100644
--- a/Modules/Applications/AppFiltering/app/otbContrastEnhancement.cxx
+++ b/Modules/Applications/AppFiltering/app/otbContrastEnhancement.cxx
@@ -52,7 +52,7 @@ class LuminanceOperator
 public:
   LuminanceOperator() = default;
   
-  size_t OutputSize(const std::array<size_t,1> & itkNotUsed(nbBands)) const
+  size_t OutputSize(const std::array<size_t,1> &) const
   {
     return 1;
   }
diff --git a/Modules/Applications/AppImageUtils/app/otbColorMapping.cxx b/Modules/Applications/AppImageUtils/app/otbColorMapping.cxx
index fd3f21840762db194109e5d61969d0211b8f2b28..b34512b1cc5ece6abd394e5dfb250308807deff5 100644
--- a/Modules/Applications/AppImageUtils/app/otbColorMapping.cxx
+++ b/Modules/Applications/AppImageUtils/app/otbColorMapping.cxx
@@ -93,7 +93,7 @@ public:
     m_OutputSize = nb;
   }
   
-  size_t OutputSize(const std::array<size_t,1> & itkNotUsed(nbBands)) const
+  size_t OutputSize(const std::array<size_t,1> & ) const
   {
     return m_OutputSize;
   }
diff --git a/Modules/Applications/AppSegmentation/app/otbHooverCompareSegmentation.cxx b/Modules/Applications/AppSegmentation/app/otbHooverCompareSegmentation.cxx
index 86f6ba709a5f80585bac7898138a1828ed904948..8f39edc15f6d2414cbc5659dcbbbe75df4106053 100644
--- a/Modules/Applications/AppSegmentation/app/otbHooverCompareSegmentation.cxx
+++ b/Modules/Applications/AppSegmentation/app/otbHooverCompareSegmentation.cxx
@@ -43,7 +43,7 @@ public:
 
   typedef std::vector<TOutput> ColorListType;
 
-  size_t OutputSize(const std::array<size_t,1> & itkNotUsed(nbBands)) const
+  size_t OutputSize(const std::array<size_t,1> &) const
   {
     return 3;
   }
diff --git a/Modules/Filtering/Projection/include/otbProjectiveProjectionImageFilter.hxx b/Modules/Filtering/Projection/include/otbProjectiveProjectionImageFilter.hxx
index 93793ad742be256b6cf380d0cb0fda7213374422..624cba13be7d46142381630a1514a4bd52184ea4 100644
--- a/Modules/Filtering/Projection/include/otbProjectiveProjectionImageFilter.hxx
+++ b/Modules/Filtering/Projection/include/otbProjectiveProjectionImageFilter.hxx
@@ -31,7 +31,7 @@ namespace Functor
 template <class TInput, class TOutput, class TPrecision>
 size_t
 ProjectiveProjectionFunctor<TInput, TOutput, TPrecision>
-::OutputSize(const std::array<size_t,1> & itkNotUsed(nbBands)) const
+::OutputSize(const std::array<size_t,1> &) const
 {
   return m_OutputSize;
 }
diff --git a/Modules/Hyperspectral/Unmixing/include/otbISRAUnmixingImageFilter.hxx b/Modules/Hyperspectral/Unmixing/include/otbISRAUnmixingImageFilter.hxx
index de35f75230a13b1d410f15c729a67a73d24afcff..210779e5ff4fb0dc89c71f200a6b10f0aacaca25 100644
--- a/Modules/Hyperspectral/Unmixing/include/otbISRAUnmixingImageFilter.hxx
+++ b/Modules/Hyperspectral/Unmixing/include/otbISRAUnmixingImageFilter.hxx
@@ -41,7 +41,7 @@ ISRAUnmixingFunctor<TInput, TOutput, TPrecision>
 template <class TInput, class TOutput, class TPrecision>
 size_t
 ISRAUnmixingFunctor<TInput, TOutput, TPrecision>
-::OutputSize(const std::array<size_t,1> & itkNotUsed(nbBands)) const
+::OutputSize(const std::array<size_t,1> & ) const
 {
   return m_OutputSize;
 }
diff --git a/Modules/Hyperspectral/Unmixing/include/otbNCLSUnmixingImageFilter.hxx b/Modules/Hyperspectral/Unmixing/include/otbNCLSUnmixingImageFilter.hxx
index 95c877be3a1be836f220885657224f865028afad..fc36006d0716dee9a1605fd5dea32b22f1db1da3 100644
--- a/Modules/Hyperspectral/Unmixing/include/otbNCLSUnmixingImageFilter.hxx
+++ b/Modules/Hyperspectral/Unmixing/include/otbNCLSUnmixingImageFilter.hxx
@@ -41,7 +41,7 @@ NCLSUnmixingFunctor<TInput, TOutput, TPrecision>
 template <class TInput, class TOutput, class TPrecision>
 size_t
 NCLSUnmixingFunctor<TInput, TOutput, TPrecision>
-::OutputSize(const std::array<size_t,1> & itkNotUsed(nbBands)) const
+::OutputSize(const std::array<size_t,1> &) const
 {
   return m_OutputSize;
 }
diff --git a/Modules/Hyperspectral/Unmixing/include/otbUnConstrainedLeastSquareImageFilter.hxx b/Modules/Hyperspectral/Unmixing/include/otbUnConstrainedLeastSquareImageFilter.hxx
index 4d939d25694fb35d27817472e58ac036c16d83ed..5749397ef2d20abb8eaa95d27a6a7c6ec6bc2c76 100644
--- a/Modules/Hyperspectral/Unmixing/include/otbUnConstrainedLeastSquareImageFilter.hxx
+++ b/Modules/Hyperspectral/Unmixing/include/otbUnConstrainedLeastSquareImageFilter.hxx
@@ -31,7 +31,7 @@ namespace Functor
 template <class TInput, class TOutput, class TPrecision>
 size_t
 UnConstrainedLeastSquareFunctor<TInput, TOutput, TPrecision>
-::OutputSize(const std::array<size_t,1> & itkNotUsed(nbBands)) const
+::OutputSize(const std::array<size_t,1> & ) const
 {
   return m_OutputSize;
 }