diff options
author | Alex Lorenz <arphaman@gmail.com> | 2017-03-15 12:13:20 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2017-03-15 12:13:20 +0000 |
commit | 54929415e103b05e680b9c0370ad433198eef358 (patch) | |
tree | 0957f24259dfb79f42022ab666931c99c0276c1a /lib/builtins/os_version_check.c | |
parent | ed26f06729828d91fd3d92677a35aadeb6af0a36 (diff) |
[compiler-rt][builtins] Ignore the deprecated warning for
CFPropertyListCreateFromXMLData that's used in __isOSVersionAtLeast
I forgot to add the pragmas in r297760.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@297827 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/builtins/os_version_check.c')
-rw-r--r-- | lib/builtins/os_version_check.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/builtins/os_version_check.c b/lib/builtins/os_version_check.c index fd8a96ae2..74ade2f5b 100644 --- a/lib/builtins/os_version_check.c +++ b/lib/builtins/os_version_check.c @@ -47,9 +47,12 @@ static void parseSystemVersionPList(void *Unused) { RTLD_DEFAULT, "CFPropertyListCreateWithData"); /* CFPropertyListCreateWithData was introduced only in macOS 10.6+, so it * will be NULL on earlier OS versions. */ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" typeof(CFPropertyListCreateFromXMLData) *CFPropertyListCreateFromXMLDataFunc = (typeof(CFPropertyListCreateFromXMLData) *)dlsym( RTLD_DEFAULT, "CFPropertyListCreateFromXMLData"); +#pragma clang diagnostic pop /* CFPropertyListCreateFromXMLDataFunc is deprecated in macOS 10.10, so it * might be NULL in future OS versions. */ if (!CFPropertyListCreateWithDataFunc && !CFPropertyListCreateFromXMLDataFunc) |