Index: /trunk/src/VBox/Runtime/r3/darwin/RTCrStoreCreateSnapshotById-darwin.cpp
===================================================================
--- /trunk/src/VBox/Runtime/r3/darwin/RTCrStoreCreateSnapshotById-darwin.cpp	(revision 85342)
+++ /trunk/src/VBox/Runtime/r3/darwin/RTCrStoreCreateSnapshotById-darwin.cpp	(revision 85343)
@@ -95,7 +95,16 @@
                                                int rc, PRTERRINFO pErrInfo)
 {
+    /** @todo The SecKeychainSearchCreateFromAttributes and
+     * SecKeychainSearchCopyNext APIs have been officially deprecated since 10.7
+     * according to the header files.  However, the perferred API,
+     * SecItemCopyMatching (and possibly SecTrustCopyAnchorCertificates) would
+     * require a larger rewrite here and that's just not worth it right now.  We can
+     * do that should these APIs be removed (unlikely given the amount of grep hits
+     * in the public 10.15.3 sources). */
+
     /*
      * Enumerate the certificates in the keychain.
      */
+    RT_GCC_NO_WARN_DEPRECATED_BEGIN
     SecKeychainSearchRef hSearch;
     OSStatus orc = SecKeychainSearchCreateFromAttributes(hKeychain, kSecCertificateItemClass, NULL, &hSearch);
@@ -149,4 +158,5 @@
         rc = RTErrInfoAddF(pErrInfo, -VERR_SEARCH_ERROR,
                            "  SecKeychainSearchCreateFromAttributes failed with %#x", orc);
+    RT_GCC_NO_WARN_DEPRECATED_END
     return rc;
 }
