Skip to content
Snippets Groups Projects
Commit 832cf19e authored by Jonathan Guinet's avatar Jonathan Guinet
Browse files

WRG: remove warning with gcc4.6 unused variables.

parent b130c347
Branches
Tags
No related merge requests found
......@@ -71,10 +71,8 @@ public:
inline TOutput operator ()(const TInput1& amplitude, const TInput2& coherence, const TInput3& phase) const
{
// std::cout << amplitude << " - " << phase << std::endl;
double hinc, sinc, vinc;
double hinc;
hinc = 0.6 / (CONST_2PI);
sinc = 0.0;
vinc = 0.0;
double hue, sat, val;
......
......@@ -77,7 +77,7 @@ VectorDataToRandomLineGenerator<TVectorData>
RegionType generatorRegion = node->GetPolygonExteriorRing()->GetBoundingRegion();
typename RegionType::SizeType generatorRegionSize = generatorRegion.GetSize();
typename RegionType::IndexType generatorRegionIndex = generatorRegion.GetIndex();
typename RegionType::IndexType generatorRegionOrigin = generatorRegion.GetOrigin();
//typename RegionType::IndexType generatorRegionOrigin = generatorRegion.GetOrigin();
// Generation
PointType rangeMin, rangeMax;
......
......@@ -627,7 +627,7 @@ ImageToSIFTKeyPointSetFilter<TInputImage, TOutputPointSet>
double secondMax = 0;
double sum = 0;
int maxIndex = 0;
int secondMaxIndex = -1;
//int secondMaxIndex = -1;
int j = 0;
int i = 0;
......@@ -648,14 +648,14 @@ ImageToSIFTKeyPointSetFilter<TInputImage, TOutputPointSet>
if (lSmoothedHistogram[i] > max)
{
secondMax = max;
secondMaxIndex = maxIndex;
//secondMaxIndex = maxIndex;
max = lSmoothedHistogram[i];
maxIndex = i;
}
else if (sum > secondMax)
{
secondMax = lSmoothedHistogram[i];
secondMaxIndex = i;
//secondMaxIndex = i;
}
}
// This structure will hold the located maximums
......
......@@ -129,7 +129,8 @@ int otbAlignImageToPath(int argc, char * argv[])
typedef VertexListType::ConstPointer VertexListTypePointer;
VertexListTypePointer vertexList;
VertexType cindex;
double x1, y1, x2, y2;
double x1, y1;
//double x2, y2;
int nbPath = sortiePath->Size();
otbGenericMsgDebugMacro(<< "NbSegment: " << nbPath);
......@@ -141,8 +142,8 @@ int otbAlignImageToPath(int argc, char * argv[])
x1 = cindex[0];
y1 = cindex[1];
cindex = vertexList->GetElement(1);
x2 = cindex[0];
y2 = cindex[1];
//x2 = cindex[0];
//y2 = cindex[1];
fprintf(file, "%8.3f %8.3f\n", x1, y1);
}
fclose(file);
......
......@@ -70,7 +70,7 @@ int otbImageToSURFKeyPointSetFilterOutputInterestPointAscii(int argc, char * arg
filter->Update();
PointsIteratorType pIt = filter->GetOutput()->GetPoints()->Begin();
PointDataIteratorType pDataIt = filter->GetOutput()->GetPointData()->Begin();
filter->GetOutput()->GetPointData()->Begin();
std::ofstream outfile(outfname);
......
......@@ -24,7 +24,7 @@
int otbImageIOFactoryNew(int argc, char* argv[])
{
otb::ImageIOFactory * lImageIOFactory;
otb::ImageIOFactory *lImageIOFactory;
lImageIOFactory = NULL;
return EXIT_SUCCESS;
return lImageIOFactory != NULL; //to avoid unused variable warning
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment