Your code is 'safe'. But you are missing both the #ifdef and #endif in the following code snippet. Everything is fine except this code won't disappear like it should if you ever turn the Auto_Bed_Leveling off. Go ahead and post in the previous thread and we can start working on getting the Z-Axis height right. Does your Z-Probe really fire .8mm below the nozzle?

#ifdef ENABLE_AUTO_BED_LEVELING // <---<<< Missing
case 48: // M48 Z-Probe repeatability
{
#if Z_MIN_PIN == -1
#error "You must have a Z_MIN endstop in order to enable calculation of Z-Probe repeatability."
#endif

double sum=0.0;
....
Sigma_Exit:
break;
}
#endif // ENABLE_AUTO_BED_LEVELING // <---<<< Missing