disable warning on mac