diff --git a/Code/IO/otbCoordinateToName.cxx b/Code/IO/otbCoordinateToName.cxx index 05c75179ca536762289dc982076b6bba27f17aec..d8b7892016f5d8b23a88b76157e810af2da0a1e1 100644 --- a/Code/IO/otbCoordinateToName.cxx +++ b/Code/IO/otbCoordinateToName.cxx @@ -115,7 +115,7 @@ void CoordinateToName::DoEvaluate() m_Curl->RetrieveUrlInMemory(urlStream.str(), m_CurlOutput); m_IsValid = true; } - catch(itk::ExceptionObject& e) + catch(itk::ExceptionObject) { m_IsValid = false; } diff --git a/Code/IO/otbPlaceNameToLonLat.cxx b/Code/IO/otbPlaceNameToLonLat.cxx index 33485dc5ff05a0a6ee6dfe20ddaac32fca7ea01f..8de631c175fae9f32c8526a649dbfccf3b8134e0 100644 --- a/Code/IO/otbPlaceNameToLonLat.cxx +++ b/Code/IO/otbPlaceNameToLonLat.cxx @@ -88,7 +88,7 @@ void PlaceNameToLonLat::RetrieveXML(const std::ostringstream& urlStream) m_RequestSucceed = true; m_Curl->RetrieveUrlInMemory(urlStream.str(), m_CurlOutput); } - catch(itk::ExceptionObject& e) + catch(itk::ExceptionObject) { m_RequestSucceed = false; }