VirtualBox

Ignore:
Timestamp:
Jun 7, 2023 8:05:13 PM (21 months 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/darwin/iokit.cpp

    r99741 r100108  
    121121    if (!g_MasterPort)
    122122    {
    123         kern_return_t krc = IOMasterPort(MACH_PORT_NULL, &g_MasterPort);
     123        RT_GCC_NO_WARN_DEPRECATED_BEGIN
     124        kern_return_t krc = IOMasterPort(MACH_PORT_NULL, &g_MasterPort); /* Deprecated since 12.0. */
     125        RT_GCC_NO_WARN_DEPRECATED_END
    124126        AssertReturn(krc == KERN_SUCCESS, false);
    125127
     
    10951097    PUSBDEVICE pHead = NULL;
    10961098    PUSBDEVICE pTail = NULL;
    1097     unsigned i = 0;
    10981099    io_object_t USBDevice;
    10991100    while ((USBDevice = IOIteratorNext(USBDevices)) != IO_OBJECT_NULL)
     
    12331234
    12341235        IOObjectRelease(USBDevice);
    1235         i++;
    12361236    }
    12371237
     
    14561456    PDARWINFIXEDDRIVE pHead = NULL;
    14571457    PDARWINFIXEDDRIVE pTail = NULL;
    1458     unsigned i = 0;
    14591458    io_object_t MediaService;
    14601459    while ((MediaService = IOIteratorNext(MediaServices)) != IO_OBJECT_NULL)
     
    15771576        }
    15781577        IOObjectRelease(MediaService);
    1579         i++;
    15801578    }
    15811579    IOObjectRelease(MediaServices);
Note: See TracChangeset for help on using the changeset viewer.

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