diff --git a/Code/BasicFilters/otbStreamingShrinkImageFilter.txx b/Code/BasicFilters/otbStreamingShrinkImageFilter.txx
index ddad24e17663ee2c74dcc02f3a1c723643c6cc27..b8dd29dbced267e974b1f2a5fdd8ec4f1b8dbab7 100644
--- a/Code/BasicFilters/otbStreamingShrinkImageFilter.txx
+++ b/Code/BasicFilters/otbStreamingShrinkImageFilter.txx
@@ -183,7 +183,7 @@ StreamingShrinkImageFilter<TInputImage, TOutputImage>
       {
       inputPtr->UpdateOutputData();
       }
-    catch (itk::ExceptionObject & err)
+    catch (itk::ExceptionObject & )
       {
       this->InvokeEvent(itk::EndEvent());
       throw;