The dp1 variable is only used when FSIRAND is defined. Just place the variable behind #ifdefs entirely.