VirtualBox

Changeset 40930 in vbox


Ignore:
Timestamp:
Apr 16, 2012 3:27:57 AM (13 years ago)
Author:
vboxsync
Message:

linux: build fix 3.4-rc3 [-fpermissive]

File:
1 edited

Legend:

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

    r35525 r40930  
    508508static PRTHEAPOFFSETBLOCK rtHeapOffsetAllocBlock(PRTHEAPOFFSETINTERNAL pHeapInt, size_t cb, size_t uAlignment)
    509509{
    510     PRTHEAPOFFSETBLOCK  pRet = NULL;
     510    PRTHEAPOFFSETBLOCK  pRet = (PRTHEAPOFFSETBLOCK)NULL;
    511511    PRTHEAPOFFSETFREE   pFree;
    512512
    513     AssertReturn((pHeapInt)->u32Magic == RTHEAPOFFSET_MAGIC, NULL);
     513    AssertReturn((pHeapInt)->u32Magic == RTHEAPOFFSET_MAGIC, (PRTHEAPOFFSETBLOCK)NULL);
    514514#ifdef RTHEAPOFFSET_STRICT
    515515    rtHeapOffsetAssertAll(pHeapInt);
     
    704704     * of us (both lists are sorted by address).
    705705     */
    706     pLeft = NULL;
    707     pRight = NULL;
     706    pLeft = (PRTHEAPOFFSETFREE)NULL;
     707    pRight = (PRTHEAPOFFSETFREE)NULL;
    708708    if (pHeapInt->offFreeTail)
    709709    {
     
    814814static void rtHeapOffsetAssertAll(PRTHEAPOFFSETINTERNAL pHeapInt)
    815815{
    816     PRTHEAPOFFSETFREE pPrev = NULL;
    817     PRTHEAPOFFSETFREE pPrevFree = NULL;
     816    PRTHEAPOFFSETFREE pPrev = (PRTHEAPOFFSETFREE)NULL;
     817    PRTHEAPOFFSETFREE pPrevFree = (PRTHEAPOFFSETFREE)NULL;
    818818    PRTHEAPOFFSETFREE pBlock;
    819819    for (pBlock = (PRTHEAPOFFSETFREE)(pHeapInt + 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