• Peter Collingbourne's avatar
    Use @available to protect references to NS45Notification. · 9c85ac23
    Peter Collingbourne authored
    An upcoming version of clang removes the ability to suppress
    availability warnings by redeclaring functions. The new way
    to suppress warnings is to either annotate the caller with an
    availability attribute or enclose the function reference in an "if
    (@available)" block.
    
    This patch uses @available to protect references to
    NSWorkspaceAccessibilityDisplayOptionsDidChangeNotification,
    instead of comparing its address to zero.
    
    Bug: 735328
    Change-Id: If6f428da62c1486c1d608f0afe5637f9fb2f4e07
    Reviewed-on: https://chromium-review.googlesource.com/564151Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
    Commit-Queue: Peter Collingbourne <pcc@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#485315}
    9c85ac23
tab_view.mm 36.4 KB