- Timestamp:
- Jan 23, 2024 10:10:13 AM (9 months ago)
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 2 edited
-
common/string/uniread.cpp (modified) (2 diffs)
-
r3/darwin/RTCrStoreCreateSnapshotById-darwin.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/uniread.cpp
r99775 r102997 979 979 980 980 981 /** the data store for stream two. */981 /** The data store for stream two. */ 982 982 static char g_szStream2[10240]; 983 983 static unsigned volatile g_offStream2 = 0; … … 1011 1011 va_list va; 1012 1012 va_start(va, pszFormat); 1013 #if 1 1014 int cch = vsnprintf(&g_szStream2[offStream2], sizeof(g_szStream2) - offStream2, pszFormat, va); 1015 #else 1013 1016 int cch = vsprintf(&g_szStream2[offStream2], pszFormat, va); 1017 #endif 1014 1018 va_end(va); 1015 1019 offStream2 += cch; -
trunk/src/VBox/Runtime/r3/darwin/RTCrStoreCreateSnapshotById-darwin.cpp
r100108 r102997 46 46 #include <iprt/file.h> 47 47 48 /* HACK ALERT! Shut up those deprecated messages on SecKeychainSearchCreateFromAttributes and SecKeychainSearchCopyNext. */ 48 49 /* HACK ALERT! Shut up those deprecated messages on SecKeychainSearchCreateFromAttributes and SecKeychainSearchCopyNext 50 with older SDKs version (newer requires RT_GCC_NO_WARN_DEPRECATED_BEGIN). */ 49 51 #include <CoreFoundation/CoreFoundation.h> 50 52 #undef DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER 51 53 #define DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER 54 55 /* The SecKeychainCopyDomainSearchList and others API are also deprecated since 10.0. 56 See https://developer.apple.com/documentation/technotes/tn3137-on-mac-keychains for some info. 57 We use RT_GCC_NO_WARN_DEPRECATED_BEGIN to silence these. */ 52 58 53 59 #include <Security/Security.h> … … 205 211 */ 206 212 CFArrayRef hKeychains; 213 RT_GCC_NO_WARN_DEPRECATED_BEGIN 207 214 OSStatus orc = SecKeychainCopyDomainSearchList(enmDomain, &hKeychains); 215 RT_GCC_NO_WARN_DEPRECATED_END 208 216 if (orc == noErr) 209 217 { … … 212 220 { 213 221 SecKeychainRef hKeychain = (SecKeychainRef)CFArrayGetValueAtIndex(hKeychains, i); 222 RT_GCC_NO_WARN_DEPRECATED_BEGIN 214 223 Assert(CFGetTypeID(hKeychain) == SecKeychainGetTypeID()); 224 RT_GCC_NO_WARN_DEPRECATED_END 215 225 CFRetain(hKeychain); 216 226
Note:
See TracChangeset
for help on using the changeset viewer.

