Use @available in service_process_util_mac.mm.
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:Nico Weber <thakis@chromium.org> Commit-Queue: Peter Collingbourne <pcc@chromium.org> Cr-Commit-Position: refs/heads/master@{#485395}
Showing
Please register or sign in to comment