Re #8911. Fix compiler warning