fix warning for latest xcode