diff --git a/Code/Projections/otbGenericRSTransform.txx b/Code/Projections/otbGenericRSTransform.txx
index a57f8e2e59a68cc09d9e28816d29f0dbbd2fdb19..190a3122cad6599eb189c9dfaf4a76991bd7bd35 100644
--- a/Code/Projections/otbGenericRSTransform.txx
+++ b/Code/Projections/otbGenericRSTransform.txx
@@ -266,7 +266,7 @@ GenericRSTransform<TScalarType, NInputDimensions, NOutputDimensions>
       otbMsgDevMacro(<< "Input projection set to sensor model.");
       }
     }
-  catch(itk::ExceptionObject &err)
+  catch(itk::ExceptionObject &)
     {
     otbMsgDevMacro(<<" Input keyword list does not describe a sensor model.");
     }
@@ -310,7 +310,7 @@ GenericRSTransform<TScalarType, NInputDimensions, NOutputDimensions>
       otbMsgDevMacro(<< "Output projection set to sensor model");
       }
     }
-  catch(itk::ExceptionObject &err)
+  catch(itk::ExceptionObject &)
     {
     otbMsgDevMacro(<<" Output keyword list does not describe a sensor model.");
     }