fixed warning with XCode 6.0

Fixed the warning compiling the library with XCODE 6.0