• Peter Collingbourne's avatar
    Use @available in service_process_util_mac.mm. · a0cb3f44
    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 changes service_process_util_mac.mm to use the
    SDK's definition of the getRelationship function instead of a
    redeclaration and protect the call with an @available check instead
    of respondsToSelector.
    
    Bug: 735328
    Change-Id: I2097b2343f63b74cbc198e7cf7bcaabea2e45735
    Reviewed-on: https://chromium-review.googlesource.com/564308Reviewed-by: default avatarNico Weber <thakis@chromium.org>
    Commit-Queue: Peter Collingbourne <pcc@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#485395}
    a0cb3f44
service_process_util_mac.mm 16.5 KB