Skip to content
Snippets Groups Projects
Commit 81a2ce81 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

WRG: various warning fixes

parent d38457a0
No related branches found
No related tags found
2 merge requests!16Merge branch Cosmo,!15WRG: various warning fixes
......@@ -90,7 +90,7 @@ namespace otb
for (std::size_t listId=0; listId!= nbLists ; ++listId)
{
const int pos = sprintf(fmRatePrefix_, "%s%d.", FM_PREFIX.c_str(), (listId+1));
const int pos = sprintf(fmRatePrefix_, "%s%zu.", FM_PREFIX.c_str(), (listId+1));
assert(pos > 0 && pos < sizeof(fmRatePrefix_));
const std::string FMPrefix(fmRatePrefix_, pos);
......@@ -120,7 +120,7 @@ namespace otb
for (std::size_t listId=0; listId!= nbLists ; ++listId)
{
const int pos = sprintf(dcfPrefix_, "%s%d.", DCF_PREFIX.c_str(), (listId+1));
const int pos = sprintf(dcfPrefix_, "%s%zu.", DCF_PREFIX.c_str(), (listId+1));
assert(pos > 0 && pos < sizeof(dcfPrefix_));
const std::string DCFPrefix(dcfPrefix_, pos);
......
......@@ -184,9 +184,6 @@ namespace otb
// For each colunm
while (!OutIt.IsAtEndOfLine() && !In1It.IsAtEndOfLine() && !In2It.IsAtEndOfLine())
{
// Output index
ImageIndexType index = OutIt.GetIndex();
double diff_DopCentroid = In1It.Get() - In2It.Get();
// Shift for azimut dimension
......
......@@ -190,7 +190,7 @@ protected:
first tile */
virtual void ThreadedGenerateData(unsigned int startTileId, unsigned int stopTileId,
unsigned int firstTileIndexL, unsigned int firstTileIndexC,
itk::ThreadIdType threadId);
itk::ThreadIdType threadId) ITK_OVERRIDE;
/** Static function used as a "callback" by the MultiThreader. The threading
* library will call this routine for each thread, which will delegate the
......
......@@ -111,7 +111,7 @@ public:
// Process
void Process(ImageInPointer inputPtr, ImageOutRegionType outputRegion, ImageOutPixelType * TilesResult,
int threadId=0)
int /*threadId=0*/)
{
// Transpose outputRegion (current tile) into input image
// Input (= output now)
......
......@@ -39,7 +39,6 @@ int otbSARDopplerCentroidFreqFilterTest(int argc, char * argv[])
// Image type
const unsigned int Dimension = 2;
typedef otb::Image <std::complex<float>, 2> ImageSARInType ;
typedef otb::Image <float, 2> FloatImageType;
typedef otb::VectorImage<float> FloatVectorImageType;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment