Fix compile warning
Merge pull request #2933 from elemoine/fix-warning

Fix compile warning