Mute a compiler warning for possibly undefined variable in cost range.