Re #9147. Fix compiler warning