forked from OSchip/llvm-project
[compiler-rt][builtins] Ignore the deprecated warning for
CFPropertyListCreateFromXMLData that's used in __isOSVersionAtLeast llvm-svn: 297613
This commit is contained in:
parent
5b35d1980c
commit
c630f349b8
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue