Commit 5ff77194 authored by Guillaume Pasero's avatar Guillaume Pasero

WRG: various warning fix

parent ac991f09
...@@ -64,6 +64,7 @@ OTBGdalAdapters_EXPORT bool IsOFTInteger64(OGRFieldType type) ...@@ -64,6 +64,7 @@ OTBGdalAdapters_EXPORT bool IsOFTInteger64(OGRFieldType type)
GDALDatasetType * Open(const char * filename, bool readOnly , std::vector< std::string > const & options ) GDALDatasetType * Open(const char * filename, bool readOnly , std::vector< std::string > const & options )
{ {
#if GDAL_VERSION_NUM<2000000 #if GDAL_VERSION_NUM<2000000
(void)options;
return OGRSFDriverRegistrar::Open(filename,!readOnly); return OGRSFDriverRegistrar::Open(filename,!readOnly);
#else #else
return (GDALDatasetType *)GDALOpenEx( return (GDALDatasetType *)GDALOpenEx(
...@@ -87,6 +88,7 @@ void Close(GDALDatasetType * dataset) ...@@ -87,6 +88,7 @@ void Close(GDALDatasetType * dataset)
GDALDatasetType * Create(GDALDriverType * driver, const char * name , std::vector< std::string > const & options ) GDALDatasetType * Create(GDALDriverType * driver, const char * name , std::vector< std::string > const & options )
{ {
#if GDAL_VERSION_NUM<2000000 #if GDAL_VERSION_NUM<2000000
(void)options;
GDALDatasetType * ds = driver->CreateDataSource(name); GDALDatasetType * ds = driver->CreateDataSource(name);
if(ds) if(ds)
......
...@@ -72,7 +72,7 @@ public: ...@@ -72,7 +72,7 @@ public:
* Get the number of elements in the vector. * Get the number of elements in the vector.
* \return The number of elements in the vector. * \return The number of elements in the vector.
*/ */
InternalContainerSizeType Size(void) const; InternalContainerSizeType Size(void) const override;
/** /**
* Resize the maximal list capacity. * Resize the maximal list capacity.
* \param size The new maximal size of the list. * \param size The new maximal size of the list.
...@@ -104,7 +104,7 @@ public: ...@@ -104,7 +104,7 @@ public:
* Get the nth element of the list as a DataObject *. * Get the nth element of the list as a DataObject *.
* \param index The index of the object to get. * \param index The index of the object to get.
*/ */
Superclass * GetNthDataObject(unsigned int index) const; Superclass * GetNthDataObject(unsigned int index) const override;
/** /**
* Return the first element of the list. * Return the first element of the list.
* \return The first element of the list. * \return The first element of the list.
......
...@@ -30,7 +30,7 @@ namespace MetaDataHelper ...@@ -30,7 +30,7 @@ namespace MetaDataHelper
MDType GetType(const std::string &val) MDType GetType(const std::string &val)
{ {
MDType ret; MDType ret(MDType::String);
otb::MetaDataKey::KeyType kt = otb::MetaDataKey::GetKeyType(val); otb::MetaDataKey::KeyType kt = otb::MetaDataKey::GetKeyType(val);
switch (kt) switch (kt)
{ {
...@@ -88,7 +88,7 @@ GetInt( ...@@ -88,7 +88,7 @@ GetInt(
const itk::MetaDataDictionary &dict, const itk::MetaDataDictionary &dict,
const std::string &key) const std::string &key)
{ {
unsigned int ret; unsigned int ret=0;
itk::ExposeMetaData<unsigned int>(dict, key, ret); itk::ExposeMetaData<unsigned int>(dict, key, ret);
return ret; return ret;
} }
...@@ -107,7 +107,7 @@ GetDouble( ...@@ -107,7 +107,7 @@ GetDouble(
const itk::MetaDataDictionary &dict, const itk::MetaDataDictionary &dict,
const std::string &key) const std::string &key)
{ {
double ret; double ret = 0.0;
itk::ExposeMetaData<double>(dict, key, ret); itk::ExposeMetaData<double>(dict, key, ret);
return ret; return ret;
} }
......
...@@ -331,7 +331,7 @@ AppliThread ...@@ -331,7 +331,7 @@ AppliThread
m_Application->GetLogger()->Fatal(string("Cannot open image ") + err.m_Filename + string(". ") + err.GetDescription() + string("\n")); m_Application->GetLogger()->Fatal(string("Cannot open image ") + err.m_Filename + string(". ") + err.GetDescription() + string("\n"));
emit ExceptionRaised( err.what() ); emit ExceptionRaised( err.what() );
} }
catch(itk::ProcessAborted& err) catch(itk::ProcessAborted& /*err*/)
{ {
m_Application->GetLogger()->Info("Processing aborted\n"); m_Application->GetLogger()->Info("Processing aborted\n");
} }
......
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