Fix warning when compiling in OS X
Merge pull request #4222

cdb36ef Fix warning when compiling in OS X (Federico Bond)