VirtualBox

Changeset 63508 in vbox for trunk


Ignore:
Timestamp:
Aug 15, 2016 10:43:13 PM (8 years ago)
Author:
vboxsync
Message:

IPRT: warnings (clang)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/darwin/memobj-r0drv-darwin.cpp

    r62477 r63508  
    211211
    212212#ifdef RT_STRICT
     213# if 0 /* unused */
    213214
    214215/**
     
    351352}
    352353
     354# endif /* unused */
    353355#endif /* RT_STRICT */
    354356
     
    565567# ifdef RT_STRICT
    566568                        /* check that the memory is actually mapped. */
    567                         RTTHREADPREEMPTSTATE State = RTTHREADPREEMPTSTATE_INITIALIZER;
    568                         RTThreadPreemptDisable(&State);
     569                        RTTHREADPREEMPTSTATE State2 = RTTHREADPREEMPTSTATE_INITIALIZER;
     570                        RTThreadPreemptDisable(&State2);
    569571                        rtR0MemObjDarwinTouchPages(pv, cb);
    570                         RTThreadPreemptRestore(&State);
     572                        RTThreadPreemptRestore(&State2);
    571573# endif
    572574
     
    709711     * Estimate is 2-3 days.
    710712     */
     713    RT_NOREF(ppMem, cb, PhysHighest);
    711714    return VERR_NOT_SUPPORTED;
    712715}
     
    867870DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment)
    868871{
     872    RT_NOREF(ppMem, pvFixed, cb, uAlignment);
    869873    return VERR_NOT_SUPPORTED;
    870874}
     
    873877DECLHIDDEN(int) rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process)
    874878{
     879    RT_NOREF(ppMem, R3PtrFixed, cb, uAlignment, R0Process);
    875880    return VERR_NOT_SUPPORTED;
    876881}
     
    880885                                          unsigned fProt, size_t offSub, size_t cbSub)
    881886{
     887    RT_NOREF(fProt);
    882888    AssertReturn(pvFixed == (void *)-1, VERR_NOT_SUPPORTED);
    883889
     
    988994
    989995
    990 DECLHIDDEN(int) rtR0MemObjNativeMapUser(PPRTR0MEMOBJINTERNAL ppMem, RTR0MEMOBJ pMemToMap, RTR3PTR R3PtrFixed, size_t uAlignment, unsigned fProt, RTR0PROCESS R0Process)
    991 {
     996DECLHIDDEN(int) rtR0MemObjNativeMapUser(PPRTR0MEMOBJINTERNAL ppMem, RTR0MEMOBJ pMemToMap, RTR3PTR R3PtrFixed, size_t uAlignment,
     997                                        unsigned fProt, RTR0PROCESS R0Process)
     998{
     999    RT_NOREF(fProt);
     1000
    9921001    /*
    9931002     * Check for unsupported things.
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