Fix GCC compiler warning.
Merge pull request #5570 from thedax/warningFix

Fix GCC compiler warning.