Fix spurious uninitialised variable warning at higher optimisation levels.