summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/lib/builtins/os_version_check.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler-rt/lib/builtins/os_version_check.c b/compiler-rt/lib/builtins/os_version_check.c
index 16d7854c9ab..b36ae546ecd 100644
--- a/compiler-rt/lib/builtins/os_version_check.c
+++ b/compiler-rt/lib/builtins/os_version_check.c
@@ -75,9 +75,13 @@ static void parseSystemVersionPList(void *Unused) {
if (&CFPropertyListCreateWithData)
PListRef = CFPropertyListCreateWithData(
NULL, FileContentsRef, kCFPropertyListImmutable, NULL, NULL);
- else
+ else {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
PListRef = CFPropertyListCreateFromXMLData(NULL, FileContentsRef,
kCFPropertyListImmutable, NULL);
+#pragma clang diagnostic pop
+ }
if (!PListRef)
goto Fail;
OpenPOWER on IntegriCloud