VirtualBox

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

Runtime: linux 3.4-rc3 build fix [-fpermissive]

File:
1 edited

Legend:

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

    r35525 r40932  
    318318    /* Init the single free block. */
    319319    pFree = pHeapInt->pFreeHead;
    320     pFree->Core.pNext = NULL;
    321     pFree->Core.pPrev = NULL;
     320    pFree->Core.pNext = (PRTHEAPSIMPLEBLOCK)NULL;
     321    pFree->Core.pPrev = (PRTHEAPSIMPLEBLOCK)NULL;
    322322    pFree->Core.pHeap = pHeapInt;
    323323    pFree->Core.fFlags = RTHEAPSIMPLEBLOCK_FLAGS_MAGIC | RTHEAPSIMPLEBLOCK_FLAGS_FREE;
    324     pFree->pNext = NULL;
    325     pFree->pPrev = NULL;
     324    pFree->pNext = (PRTHEAPSIMPLEFREE)NULL;
     325    pFree->pPrev = (PRTHEAPSIMPLEFREE)NULL;
    326326    pFree->cb = pHeapInt->cbFree;
    327327
     
    476476static PRTHEAPSIMPLEBLOCK rtHeapSimpleAllocBlock(PRTHEAPSIMPLEINTERNAL pHeapInt, size_t cb, size_t uAlignment)
    477477{
    478     PRTHEAPSIMPLEBLOCK  pRet = NULL;
     478    PRTHEAPSIMPLEBLOCK  pRet = (PRTHEAPSIMPLEBLOCK)NULL;
    479479    PRTHEAPSIMPLEFREE   pFree;
    480480
     
    533533                pPrev = (PRTHEAPSIMPLEBLOCK)(pHeapInt + 1);
    534534                Assert(pPrev == &pFree->Core);
    535                 pPrev->pPrev = NULL;
     535                pPrev->pPrev = (PRTHEAPSIMPLEBLOCK)NULL;
    536536                pPrev->pNext = &pFree->Core;
    537537                pPrev->pHeap = pHeapInt;
     
    696696     * of us (both lists are sorted by address).
    697697     */
    698     pLeft = NULL;
    699     pRight = NULL;
     698    pLeft = (PRTHEAPSIMPLEFREE)NULL;
     699    pRight = (PRTHEAPSIMPLEFREE)NULL;
    700700    if (pHeapInt->pFreeTail)
    701701    {
     
    728728        Assert(pRight == pHeapInt->pFreeHead);
    729729        pFree->Core.fFlags |= RTHEAPSIMPLEBLOCK_FLAGS_FREE;
    730         pFree->pPrev = NULL;
     730        pFree->pPrev = (PRTHEAPSIMPLEFREE)NULL;
    731731        pFree->pNext = pRight;
    732732        if (pRight)
     
    806806static void rtHeapSimpleAssertAll(PRTHEAPSIMPLEINTERNAL pHeapInt)
    807807{
    808     PRTHEAPSIMPLEFREE pPrev = NULL;
    809     PRTHEAPSIMPLEFREE pPrevFree = NULL;
     808    PRTHEAPSIMPLEFREE pPrev = (PRTHEAPSIMPLEFREE)NULL;
     809    PRTHEAPSIMPLEFREE pPrevFree = (PRTHEAPSIMPLEFREE)NULL;
    810810    PRTHEAPSIMPLEFREE pBlock;
    811811    for (pBlock = (PRTHEAPSIMPLEFREE)(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