Fixed xcode warnings for MacOSX
Merge pull request #1226 from seanpaultaylor/next

Fixed xcode warnings for MacOSX