Index: vm/jitrino/src/codegenerator/ia32/Ia32GCMap.cpp =================================================================== --- vm/jitrino/src/codegenerator/ia32/Ia32GCMap.cpp (revision 478128) +++ vm/jitrino/src/codegenerator/ia32/Ia32GCMap.cpp (working copy) @@ -358,7 +358,10 @@ POINTER_SIZE_INT mptrAddr = *((POINTER_SIZE_INT*)valPtrAddr); //we looking for a base that a) located before mptr in memory b) nearest to mptr GCSafePointOpnd* baseOpnd = NULL; - POINTER_SIZE_INT basePtrAddr = 0, baseAddr = 0; +#ifdef ENABLE_GC_RT_CHECKS + POINTER_SIZE_INT basePtrAddr = 0; +#endif + POINTER_SIZE_INT baseAddr = 0; for (uint32 j=0; jisObject()) { @@ -367,7 +370,9 @@ if (tmpBaseAddr <= mptrAddr) { if (baseOpnd == NULL || tmpBaseAddr > baseAddr) { baseOpnd = tmpOpnd; +#ifdef ENABLE_GC_RT_CHECKS basePtrAddr = tmpPtrAddr; +#endif baseAddr = tmpBaseAddr; } }