diff options
-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) |