[compiler-rt] r297827 - [compiler-rt][builtins] Ignore the deprecated warning for
Alex Lorenz via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 15 05:13:21 PDT 2017
Author: arphaman
Date: Wed Mar 15 07:13:20 2017
New Revision: 297827
URL: http://llvm.org/viewvc/llvm-project?rev=297827&view=rev
Log:
[compiler-rt][builtins] Ignore the deprecated warning for
CFPropertyListCreateFromXMLData that's used in __isOSVersionAtLeast
I forgot to add the pragmas in r297760.
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=297827&r1=297826&r2=297827&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/os_version_check.c (original)
+++ compiler-rt/trunk/lib/builtins/os_version_check.c Wed Mar 15 07:13:20 2017
@@ -47,9 +47,12 @@ static void parseSystemVersionPList(void
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)
More information about the llvm-commits
mailing list