[compiler-rt] r297613 - [compiler-rt][builtins] Ignore the deprecated warning for

Alex Lorenz via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 13 04:00:44 PDT 2017


Author: arphaman
Date: Mon Mar 13 06:00:44 2017
New Revision: 297613

URL: http://llvm.org/viewvc/llvm-project?rev=297613&view=rev
Log:
[compiler-rt][builtins] Ignore the deprecated warning for
CFPropertyListCreateFromXMLData that's used in __isOSVersionAtLeast

Modified:
    compiler-rt/trunk/lib/builtins/os_version_check.c

Modified: compiler-rt/trunk/lib/builtins/os_version_check.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/builtins/os_version_check.c?rev=297613&r1=297612&r2=297613&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/os_version_check.c (original)
+++ compiler-rt/trunk/lib/builtins/os_version_check.c Mon Mar 13 06:00:44 2017
@@ -75,9 +75,13 @@ static void parseSystemVersionPList(void
   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;
 




More information about the llvm-commits mailing list