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