geometry/rtree.h: fix compiler warnings

This commit is contained in:
tomasz.wlostowski@cern.ch 2013-09-18 19:37:56 +02:00
parent 75b59d8fa4
commit 74f42a6241
1 changed files with 3 additions and 3 deletions

View File

@ -1287,7 +1287,7 @@ int RTREE_QUAL::PickBranch( Rect* a_rect, Node* a_node )
ELEMTYPEREAL bestIncr = (ELEMTYPEREAL) -1;
ELEMTYPEREAL area;
ELEMTYPEREAL bestArea;
int best;
int best = 0;
Rect tempRect;
for( int index = 0; index < a_node->m_count; ++index )
@ -1480,7 +1480,7 @@ void RTREE_QUAL::ChoosePartition( PartitionVars* a_parVars, int a_minFill )
ASSERT( a_parVars );
ELEMTYPEREAL biggestDiff;
int group, chosen, betterGroup;
int group, chosen = 0, betterGroup = 0;
InitParVars( a_parVars, a_parVars->m_branchCount, a_minFill );
PickSeeds( a_parVars );
@ -1603,7 +1603,7 @@ void RTREE_QUAL::InitParVars( PartitionVars* a_parVars, int a_maxRects, int a_mi
RTREE_TEMPLATE
void RTREE_QUAL::PickSeeds( PartitionVars* a_parVars )
{
int seed0, seed1;
int seed0 = 0, seed1 = 0;
ELEMTYPEREAL worst, waste;
ELEMTYPEREAL area[MAXNODES + 1];