VirtualBox

Changeset 104670 in vbox


Ignore:
Timestamp:
May 16, 2024 10:42:46 AM (7 months ago)
Author:
vboxsync
Message:

VBoxGuest-darwin.cpp: Ignore known (unavoidable) deprecation warnings and avoid function pointer mess in the cases where Apple got it right. bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-darwin.cpp

    r100267 r104670  
    139139
    140140private:
     141    RT_GCC_NO_WARN_DEPRECATED_BEGIN
    141142    IOPCIDevice                *m_pIOPCIDevice;
     143    RT_GCC_NO_WARN_DEPRECATED_END
    142144    IOMemoryMap                *m_pMap;
    143145    IOFilterInterruptEventSource *m_pInterruptSrc;
     
    145147    bool setupVmmDevInterrupts(IOService *pProvider);
    146148    bool disableVmmDevInterrupts(void);
     149    RT_GCC_NO_WARN_DEPRECATED_BEGIN
    147150    bool isVmmDev(IOPCIDevice *pIOPCIDevice);
     151    RT_GCC_NO_WARN_DEPRECATED_END
    148152
    149153protected:
     
    238242    /*.d_mmap     = */ eno_mmap,
    239243    /*.d_strategy = */ eno_strat,
     244#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
     245    /*.d_getc     = */ eno_getc,
     246    /*.d_putc     = */ eno_putc,
     247#else /* Apple got it wrong in the 10.5 SDK */
    240248    /*.d_getc     = */ (void *)(uintptr_t)&enodev, //eno_getc,
    241249    /*.d_putc     = */ (void *)(uintptr_t)&enodev, //eno_putc,
     250#endif
    242251    /*.d_type     = */ 0
    243252};
     
    877886         * Make sure it's a PCI device.
    878887         */
     888        RT_GCC_NO_WARN_DEPRECATED_BEGIN
    879889        m_pIOPCIDevice = OSDynamicCast(IOPCIDevice, pProvider);
     890        RT_GCC_NO_WARN_DEPRECATED_END
    880891        if (m_pIOPCIDevice)
    881892        {
     
    11271138 * @param   pIOPCIDevice    The PCI device we think might be the VMM device.
    11281139 */
     1140RT_GCC_NO_WARN_DEPRECATED_BEGIN
    11291141bool org_virtualbox_VBoxGuest::isVmmDev(IOPCIDevice *pIOPCIDevice)
     1142RT_GCC_NO_WARN_DEPRECATED_END
    11301143{
    11311144    if (pIOPCIDevice)
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