Fixed a warning in the 4.2 branch.