VirtualBox

Changeset 100108 in vbox for trunk/src/VBox/Runtime/r3


Ignore:
Timestamp:
Jun 7, 2023 8:05:13 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
157801
Message:

*: Fix build issues when setting VBOX_WITH_WARNINGS_AS_ERRORS=1 on darwin.arm64 and make it a default, bugref:10469

Location:
trunk/src/VBox/Runtime/r3/darwin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/darwin/RTCrStoreCreateSnapshotById-darwin.cpp

    r98103 r100108  
    181181     */
    182182    SecKeychainRef hKeychain;
    183     OSStatus orc = SecKeychainOpen(pszKeychain, &hKeychain);
     183
     184    RT_GCC_NO_WARN_DEPRECATED_BEGIN
     185    OSStatus orc = SecKeychainOpen(pszKeychain, &hKeychain); /* Deprecated since 12.0 */
     186    RT_GCC_NO_WARN_DEPRECATED_END
    184187    if (orc == noErr)
    185188    {
  • trunk/src/VBox/Runtime/r3/darwin/RTMpGetDescription-generic.cpp

    r98103 r100108  
    7171    char szArmCpuPath[64];
    7272    RTStrPrintf(szArmCpuPath, sizeof(szArmCpuPath), "IODeviceTree:/cpus/cpu%x", idCpu); /** @todo Hex? M1 Max only has 10 cores... */
    73     io_registry_entry_t hIoRegEntry = IORegistryEntryFromPath(kIOMasterPortDefault, szArmCpuPath);
     73
     74    RT_GCC_NO_WARN_DEPRECATED_BEGIN
     75    io_registry_entry_t hIoRegEntry = IORegistryEntryFromPath(kIOMasterPortDefault, szArmCpuPath); /* kIOMasterPortDefault: Deprecated since 12.0. */
     76    RT_GCC_NO_WARN_DEPRECATED_END
    7477    if (hIoRegEntry != MACH_PORT_NULL)
    7578    {
  • trunk/src/VBox/Runtime/r3/darwin/RTSystemQueryDmiString-darwin.cpp

    r98103 r100108  
    8282
    8383    mach_port_t MasterPort;
    84     kern_return_t kr = IOMasterPort(MACH_PORT_NULL, &MasterPort);
     84
     85    RT_GCC_NO_WARN_DEPRECATED_BEGIN
     86    kern_return_t kr = IOMasterPort(MACH_PORT_NULL, &MasterPort); /* Deprecated since 12.0. */
     87    RT_GCC_NO_WARN_DEPRECATED_END
    8588    if (kr != kIOReturnSuccess)
    8689    {
  • trunk/src/VBox/Runtime/r3/darwin/mp-darwin.cpp

    r98103 r100108  
    370370    RTStrPrintf(szCpuPath, sizeof(szCpuPath), "IODeviceTree:/cpus/cpu%x", idCpu); /** @todo Hex? M1 Max only has 10 cores... */
    371371# endif
    372     io_registry_entry_t hIoRegEntry = IORegistryEntryFromPath(kIOMasterPortDefault, szCpuPath);
     372
     373    RT_GCC_NO_WARN_DEPRECATED_BEGIN
     374    io_registry_entry_t hIoRegEntry = IORegistryEntryFromPath(kIOMasterPortDefault, szCpuPath); /* kIOMasterPortDefault: Deprecated since 12.0. */
     375    RT_GCC_NO_WARN_DEPRECATED_END
     376
    373377    if (hIoRegEntry != MACH_PORT_NULL)
    374378    {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette