From c630f349b805ccc6b1ae4044a615541c08cd84ac Mon Sep 17 00:00:00 2001 From: Alex Lorenz Date: Mon, 13 Mar 2017 11:00:44 +0000 Subject: [PATCH] [compiler-rt][builtins] Ignore the deprecated warning for CFPropertyListCreateFromXMLData that's used in __isOSVersionAtLeast llvm-svn: 297613 --- compiler-rt/lib/builtins/os_version_check.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compiler-rt/lib/builtins/os_version_check.c b/compiler-rt/lib/builtins/os_version_check.c index 16d7854c9ab9..b36ae546ecd0 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;