VirtualBox

Changeset 100108 in vbox for trunk/src/VBox/Devices/EFI


Ignore:
Timestamp:
Jun 7, 2023 8:05:13 PM (18 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/Devices/EFI
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/DevSmc.cpp

    r98103 r100108  
    543543    AssertReturn(cbKey >= 65, VERR_INTERNAL_ERROR);
    544544
     545    RT_GCC_NO_WARN_DEPRECATED_BEGIN /* kIOMasterPortDefault: Deprecated since 12.0. */
    545546    io_service_t service = IOServiceGetMatchingService(kIOMasterPortDefault,
    546547                                                       IOServiceMatching("AppleSMC"));
     548    RT_GCC_NO_WARN_DEPRECATED_END
    547549    if (!service)
    548550        return VERR_NOT_FOUND;
  • trunk/src/VBox/Devices/EFI/VBoxSmcUtil-darwin.cpp

    r98103 r100108  
    124124static int ConnectToSmc(void)
    125125{
    126     g_hSmcService = IOServiceGetMatchingService(kIOMasterPortDefault, IOServiceMatching("AppleSMC"));
     126    RT_GCC_NO_WARN_DEPRECATED_BEGIN
     127    g_hSmcService = IOServiceGetMatchingService(kIOMasterPortDefault, IOServiceMatching("AppleSMC")); /* kIOMasterPortDefault: Deprecated since 12.0. */
     128    RT_GCC_NO_WARN_DEPRECATED_END
    127129    if (g_hSmcService == IO_OBJECT_NULL)
    128130        return VERR_NOT_FOUND;
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