Got our 'do nothing' loop to work properly when compiling with optimisations.