VirtualBox

Changeset 95971 in vbox


Ignore:
Timestamp:
Aug 1, 2022 8:04:43 PM (2 years ago)
Author:
vboxsync
Message:

IPRT/r3/alloc.cpp: gcc 12.1.1 workaround.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/alloc.cpp

    r93115 r95971  
    240240
    241241#else /* !RTALLOC_USE_EFENCE */
     242# ifdef RT_STRICT
     243    const uintptr_t uOld = (uintptr_t)pvOld; /* overzealous gcc 12 complains it's used over realloc */
     244# endif
    242245
    243246# ifdef RTMEMALLOC_USE_TRACKER
     
    249252    void *pv = realloc(pvOld, cbNew); NOREF(pszTag);
    250253# endif
    251     AssertMsg(pv || !cbNew, ("realloc(%p, %#zx) failed!!!\n", pvOld, cbNew));
     254    AssertMsg(pv || !cbNew, ("realloc(%p, %#zx) failed!!!\n", uOld, cbNew));
    252255    AssertMsg(   cbNew < RTMEM_ALIGNMENT
    253256              || !((uintptr_t)pv & (RTMEM_ALIGNMENT - 1))
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