fix osx compile warning