Commit c4e3aa63 authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

WRG: fix more warnings with gcc 8

parent af136e99
......@@ -287,7 +287,7 @@ int main(int argc, char* argv[])
{
writer->Update();
}
catch (itk::ExceptionObject e)
catch ( itk::ExceptionObject & e )
{
std::cerr << "Error: " << e << std::endl;
}
......
......@@ -30,7 +30,7 @@ int otbImageToEdgePathFilter(int itkNotUsed(argc), char * argv[])
{
const char * inputFilename = argv[1];
const char * outputFilename = argv[2];
const unsigned int foreground((const unsigned int) ::atoi(argv[3]));
const unsigned int foreground = atoi(argv[3]);
const unsigned int Dimension = 2;
typedef unsigned char PixelType;
......
......@@ -107,7 +107,7 @@ void PlaceNameToLonLat::RetrieveXML(const std::ostringstream& urlStream)
m_RequestSucceed = true;
m_Curl->RetrieveUrlInMemory(urlStream.str(), m_CurlOutput);
}
catch(itk::ExceptionObject)
catch( itk::ExceptionObject & err )
{
m_RequestSucceed = false;
}
......
......@@ -57,7 +57,7 @@ int otbImageToOSMVectorDataGenerator(int argc, char * argv[])
{
parser->ParseCommandLine(argc, argv, parseResult);
}
catch ( itk::ExceptionObject )
catch ( itk::ExceptionObject & err )
{
return EXIT_FAILURE;
}
......
......@@ -65,7 +65,7 @@ int otbOSMToVectorDataGeneratorByName (int argc, char * argv[])
{
parser->ParseCommandLine(argc, argv, parseResult);
}
catch ( itk::ExceptionObject )
catch ( itk::ExceptionObject & err )
{
return EXIT_FAILURE;
}
......
......@@ -80,7 +80,7 @@ typename StandardDSCostFunction<TDSValidationFilter>
{
internalFunctionGT->SetDescriptorModels(descModel);
}
catch (itk::ExceptionObject /*& err*/)
catch ( itk::ExceptionObject & err )
{
return 1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment