VirtualBox

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


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

Location:
trunk/src/VBox/Devices
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DrvHostAudioCoreAudio.cpp

    r98103 r100108  
    6262#include <AudioToolbox/AudioQueue.h>
    6363#include <AudioUnit/AudioUnit.h>
     64
     65
     66RT_GCC_NO_WARN_DEPRECATED_BEGIN /* Much here is deprecated since 12.0 */
    6467
    6568#if MAC_OS_X_VERSION_MIN_REQUIRED < 1090 /* possibly 1080 */
     
    29242927    PDM_DRVREG_VERSION
    29252928};
     2929
     2930RT_GCC_NO_WARN_DEPRECATED_END
  • 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;
  • trunk/src/VBox/Devices/Gpio/DevPL061.cpp

    r99895 r100108  
    184184    RT_NOREF(pvUser);
    185185    Assert(cb == 4);
    186     Assert(!(off & (cb - 1)));
     186    Assert(!(off & (cb - 1))); RT_NOREF(cb);
    187187
    188188    LogFlowFunc(("%RGp cb=%u\n", off, cb));
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r99775 r100108  
    23702370         * anything wider than 2050 pixels @32bpp. Need to check all pages
    23712371         * between the first and last one. */
    2372         bool     fUpdate    = fFullUpdate | vgaR3IsDirty(pThis, offPage0) | vgaR3IsDirty(pThis, offPage1);
     2372        bool     fUpdate    = fFullUpdate || vgaR3IsDirty(pThis, offPage0) || vgaR3IsDirty(pThis, offPage1);
    23732373        if (offPage1 - offPage0 > GUEST_PAGE_SIZE)
    23742374            /* if wide line, can use another page */
     
    25692569         * anything wider than 2050 pixels @32bpp. Need to check all pages
    25702570         * between the first and last one. */
    2571         bool update = full_update | vgaR3IsDirty(pThis, page0) | vgaR3IsDirty(pThis, page1);
     2571        bool update = full_update || vgaR3IsDirty(pThis, page0) || vgaR3IsDirty(pThis, page1);
    25722572        if (page1 - page0 > GUEST_PAGE_SIZE) {
    25732573            /* if wide line, can use another page */
  • trunk/src/VBox/Devices/Misc/DevPL031.cpp

    r99739 r100108  
    243243    NOREF(pvUser);
    244244    Assert(cb == 4 || cb == 8);
    245     Assert(!(off & (cb - 1)));
     245    Assert(!(off & (cb - 1))); RT_NOREF(cb);
    246246
    247247    LogFlowFunc(("%RGp cb=%u\n", off, cb));
     
    317317    RT_NOREF(pvUser);
    318318    Assert(cb == 4 || cb == 8);
    319     Assert(!(off & (cb - 1)));
     319    Assert(!(off & (cb - 1))); RT_NOREF(cb);
    320320
    321321    VBOXSTRICTRC rcStrict = VINF_SUCCESS;
     
    493493
    494494    Assert(iInstance < 4);
     495    RT_NOREF(iInstance);
    495496
    496497    /*
  • trunk/src/VBox/Devices/Serial/DevPL011.cpp

    r99739 r100108  
    615615    NOREF(pvUser);
    616616    Assert(cb == 4 || cb == 8);
    617     Assert(!(off & (cb - 1)));
     617    Assert(!(off & (cb - 1))); RT_NOREF(cb);
    618618
    619619    LogFlowFunc(("%RGp cb=%u\n", off, cb));
     
    674674    RT_NOREF(pvUser);
    675675    Assert(cb == 4 || cb == 8);
    676     Assert(!(off & (cb - 1)));
     676    Assert(!(off & (cb - 1))); RT_NOREF(cb);
    677677
    678678    VBOXSTRICTRC rcStrict = VINF_SUCCESS;
     
    714714
    715715    /** @todo */
    716     RT_NOREF(pThis);
     716    RT_NOREF(pThis, cbAvail);
    717717
    718718    PDMDevHlpCritSectLeave(pDevIns, pDevIns->pCritSectRoR3);
     
    780780
    781781    /** @todo */
    782     RT_NOREF(pThis);
     782    RT_NOREF(pThis, fNewStatusLines);
    783783
    784784    PDMDevHlpCritSectLeave(pDevIns, pDevIns->pCritSectRoR3);
  • trunk/src/VBox/Devices/Storage/DrvHostBase-darwin.cpp

    r98103 r100108  
    524524     * Open the master port on the first invocation.
    525525     */
    526     kern_return_t krc = IOMasterPort(MACH_PORT_NULL, &pThis->Os.MasterPort);
     526    RT_GCC_NO_WARN_DEPRECATED_BEGIN
     527    kern_return_t krc = IOMasterPort(MACH_PORT_NULL, &pThis->Os.MasterPort); /* Deprecated since 12.0. */
     528    RT_GCC_NO_WARN_DEPRECATED_END
    527529    AssertReturn(krc == KERN_SUCCESS, VERR_GENERAL_FAILURE);
    528530
  • trunk/src/VBox/Devices/USB/darwin/USBProxyDevice-darwin.cpp

    r99739 r100108  
    293293
    294294    int rc;
    295     kern_return_t krc = IOMasterPort(MACH_PORT_NULL, &g_MasterPort);
     295    RT_GCC_NO_WARN_DEPRECATED_BEGIN
     296    kern_return_t krc = IOMasterPort(MACH_PORT_NULL, &g_MasterPort);  /* Deprecated since 12.0. */
     297    RT_GCC_NO_WARN_DEPRECATED_END
    296298    if (krc == KERN_SUCCESS)
    297299    {
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