VirtualBox

Changeset 73502 in vbox for trunk/src/VBox/Runtime/testcase


Ignore:
Timestamp:
Aug 5, 2018 12:40:50 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
124129
Message:

IPRT: GCC 8.2.0 fixes

Location:
trunk/src/VBox/Runtime/testcase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstRTHeapOffset.cpp

    r69111 r73502  
    101101    };
    102102    uint32_t i;
    103     RTHeapOffsetDump(Heap, (PFNRTHEAPOFFSETPRINTF)RTPrintf); /** @todo Add some detail info output with a signature identical to RTPrintf. */
     103    RTHeapOffsetDump(Heap, (PFNRTHEAPOFFSETPRINTF)(uintptr_t)RTPrintf); /** @todo Add some detail info output with a signature identical to RTPrintf. */
    104104    size_t cbBefore = RTHeapOffsetGetFreeSize(Heap);
    105105    static char const s_szFill[] = "01234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
     
    185185                      "Warning: Either we've split out an alignment chunk at the start, or we've got\n"
    186186                      "         an alloc/free accounting bug: cbBefore=%d cbAfter=%d\n", cbBefore, cbAfter);
    187         RTHeapOffsetDump(Heap, (PFNRTHEAPOFFSETPRINTF)RTPrintf);
     187        RTHeapOffsetDump(Heap, (PFNRTHEAPOFFSETPRINTF)(uintptr_t)RTPrintf);
    188188    }
    189189
  • trunk/src/VBox/Runtime/testcase/tstRTHeapSimple.cpp

    r69111 r73502  
    9898    };
    9999    unsigned i;
    100     RTHeapSimpleDump(Heap, (PFNRTHEAPSIMPLEPRINTF)RTPrintf); /** @todo Add some detail info output with a signature identical to RTPrintf. */
     100    RTHeapSimpleDump(Heap, (PFNRTHEAPSIMPLEPRINTF)(uintptr_t)RTPrintf); /** @todo Add some detail info output with a signature identical to RTPrintf. */
    101101    size_t cbBefore = RTHeapSimpleGetFreeSize(Heap);
    102102    static char szFill[] = "01234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
     
    181181                      "Warning: Either we've split out an alignment chunk at the start, or we've got\n"
    182182                      "         an alloc/free accounting bug: cbBefore=%d cbAfter=%d\n", cbBefore, cbAfter);
    183         RTHeapSimpleDump(Heap, (PFNRTHEAPSIMPLEPRINTF)RTPrintf);
     183        RTHeapSimpleDump(Heap, (PFNRTHEAPSIMPLEPRINTF)(uintptr_t)RTPrintf);
    184184    }
    185185
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