VirtualBox

Changeset 75133 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 28, 2018 5:49:49 PM (6 years ago)
Author:
vboxsync
Message:

IPRT: Shut up some warnings.

Location:
trunk/src/VBox/Runtime/r0drv/os2
Files:
5 edited

Legend:

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

    r73097 r75133  
    8080            AssertMsgFailed(("RTR0MEMOBJTYPE_PHYS_NC\n"));
    8181            return VERR_INTERNAL_ERROR;
    82             break;
    8382
    8483        case RTR0MEMOBJTYPE_PHYS:
     
    309308DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment)
    310309{
     310    RT_NOREF(ppMem, pvFixed, cb, uAlignment);
    311311    return VERR_NOT_SUPPORTED;
    312312}
     
    316316                                            RTR0PROCESS R0Process)
    317317{
     318    RT_NOREF(ppMem, R3PtrFixed, cb, uAlignment, R0Process);
    318319    return VERR_NOT_SUPPORTED;
    319320}
     
    356357                AssertMsgReturn(fProt & RTMEM_PROT_WRITE, ("%#x\n", fProt), VERR_NOT_SUPPORTED);
    357358                Assert(!pMemToMapOs2->Core.u.Phys.fAllocated);
    358                 ULONG ulPhys = pMemToMapOs2->Core.u.Phys.PhysBase;
     359                ULONG ulPhys = (ULONG)pMemToMapOs2->Core.u.Phys.PhysBase;
     360                AssertReturn(ulPhys == pMemToMapOs2->Core.u.Phys.PhysBase, VERR_OUT_OF_RANGE);
    359361                rc = KernVMAlloc(pMemToMapOs2->Core.cb, VMDHA_PHYS, &pvR0, (PPVOID)&ulPhys, NULL);
    360362                if (rc)
     
    367369            AssertMsgFailed(("RTR0MEMOBJTYPE_PHYS_NC\n"));
    368370            return VERR_INTERNAL_ERROR_3;
    369             break;
    370371
    371372        case RTR0MEMOBJTYPE_LOCK:
     
    444445            AssertMsgFailed(("RTR0MEMOBJTYPE_PHYS_NC\n"));
    445446            return VERR_INTERNAL_ERROR_5;
    446             break;
    447447
    448448        case RTR0MEMOBJTYPE_LOCK:
  • trunk/src/VBox/Runtime/r0drv/os2/memuserkernel-r0drv-os2.cpp

    r69111 r75133  
    7979RTR0DECL(int) RTR0MemKernelCopyFrom(void *pvDst, void const *pvSrc, size_t cb)
    8080{
     81    RT_NOREF(pvDst, pvSrc, cb);
    8182    return VERR_NOT_SUPPORTED;
    8283}
     
    8586RTR0DECL(int) RTR0MemKernelCopyTo(void *pvDst, void const *pvSrc, size_t cb)
    8687{
     88    RT_NOREF(pvDst, pvSrc, cb);
    8789    return VERR_NOT_SUPPORTED;
    8890}
  • trunk/src/VBox/Runtime/r0drv/os2/semeventmulti-r0drv-os2.cpp

    r57358 r75133  
    9191        return VINF_SUCCESS;
    9292    }
     93    RT_NOREF(hClass, pszNameFmt);
    9394    return VERR_NO_MEMORY;
    9495}
     
    178179                                    PCRTLOCKVALSRCPOS pSrcPos)
    179180{
     181    RT_NOREF(pSrcPos);
     182
    180183    /*
    181184     * Validate and convert the input.
  • trunk/src/VBox/Runtime/r0drv/os2/spinlock-r0drv-os2.cpp

    r57358 r75133  
    6767{
    6868    AssertReturn(fFlags == RTSPINLOCK_FLAGS_INTERRUPT_SAFE || fFlags == RTSPINLOCK_FLAGS_INTERRUPT_UNSAFE, VERR_INVALID_PARAMETER);
     69    RT_NOREF(pszName);
    6970
    7071    /*
  • trunk/src/VBox/Runtime/r0drv/os2/timer-r0drv-os2.cpp

    r57358 r75133  
    289289    if (!rtTimerIsValid(pTimer))
    290290        return VERR_INVALID_HANDLE;
    291 
     291    RT_NOREF(u64NanoInterval);
    292292    return VERR_NOT_SUPPORTED;
    293293}
     
    367367RTDECL(int) RTTimerRequestSystemGranularity(uint32_t u32Request, uint32_t *pu32Granted)
    368368{
     369    RT_NOREF(u32Request, pu32Granted);
    369370    return VERR_NOT_SUPPORTED;
    370371}
     
    373374RTDECL(int) RTTimerReleaseSystemGranularity(uint32_t u32Granted)
    374375{
     376    RT_NOREF(u32Granted);
    375377    return VERR_NOT_SUPPORTED;
    376378}
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