VirtualBox

Changeset 100108 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jun 7, 2023 8:05:13 PM (20 months ago)
Author:
vboxsync
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/Additions
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3Lib.cpp

    r98103 r100108  
    232232   /* IOKit */
    233233    mach_port_t MasterPort;
    234     kern_return_t kr = IOMasterPort(MACH_PORT_NULL, &MasterPort);
     234    RT_GCC_NO_WARN_DEPRECATED_BEGIN
     235    kern_return_t kr = IOMasterPort(MACH_PORT_NULL, &MasterPort); /* Deprecated since 12.0. */
     236    RT_GCC_NO_WARN_DEPRECATED_END
    235237    if (kr != kIOReturnSuccess)
    236238    {
     
    246248    }
    247249
    248     io_service_t ServiceObject = IOServiceGetMatchingService(kIOMasterPortDefault, ClassToMatch);
     250    RT_GCC_NO_WARN_DEPRECATED_BEGIN
     251    io_service_t ServiceObject = IOServiceGetMatchingService(kIOMasterPortDefault, ClassToMatch); /* kIOMasterPortDefault: Deprecated since 12.0. */
     252    RT_GCC_NO_WARN_DEPRECATED_END
    249253    if (!ServiceObject)
    250254    {
  • trunk/src/VBox/Additions/darwin/VBoxClient/VBoxClientClipboardGuestToHost.cpp

    r98103 r100108  
    4646#include "VBoxClientInternal.h"
    4747
     48RT_GCC_NO_WARN_DEPRECATED_BEGIN /* Much here is deprecated since 12.0 */
     49
    4850/**
    4951 * Walk through pasteboard items and report currently available item types.
     
    389391    return rc; /** @todo r=bird: If there are multiple formats available, which rc is returned here? Does it matter? */
    390392}
     393
     394RT_GCC_NO_WARN_DEPRECATED_END
  • trunk/src/VBox/Additions/darwin/VBoxClient/VBoxClientClipboardHostToGuest.cpp

    r98103 r100108  
    4646#include "VBoxClientInternal.h"
    4747
     48RT_GCC_NO_WARN_DEPRECATED_BEGIN /* Much here is deprecated since 12.0 */
     49
    4850/**
    4951 * Allocate memory for host buffer and receive it.
     
    314316    return rc;
    315317}
     318
     319RT_GCC_NO_WARN_DEPRECATED_END
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